Ciao ho un problema ha configurare il NAT (uno a uno) degli IP pubblici sulle macchine sulla LAN.
La linea è una HDSL Telecom
Punto Punto XX.XX.122.32/255.255.255.252
IP Pubblici XX.XX.69.112/255.255.255.248
GW 94.86.69.112
LAN 192.168.1.0/24
Fino ad oggi il cliente non ha avuto bisogno di usare gli IP pubblici ora devo fare un cambio di configurazione come segue :
IP pubblico xx.xx.69.113 NAT su -> 192.168.1.40
IP pubblico xx.xx.69.114 NAtT su -> 192.168.1.41
e cosi vià.
Ho provato ad usare una Loopback per il primo IP pubblico ma mi sembra che non funzioni (volevo usare una loopback per ogni ip pubblico).
La cfg del router è la segente :
Building configuration...
Current configuration : 2001 bytes
!
version 12.3
service tcp-keepalives-in
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname ODK-
!
boot-start-marker
boot-end-marker
!
enable secret 5 !
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
no aaa new-model
ip subnet-zero
no ip source-route
no ip gratuitous-arps
ip icmp rate-limit unreachable 1000
ip cef
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.50
!
ip dhcp pool LAN-INT
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 151.99.125.1 151.99.0.100
!
no ip domain lookup
ip name-server 151.99.125.1
ip name-server 151.99.0.100
no ftp-server write-enable
!
!
!
!
interface Loopback0
description IP PUBBLICO DVR
ip address XX.YY.69.113 255.255.255.255
ip nat outside
!
interface FastEthernet0
description LAN INTERNA
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip route-cache flow
no ip mroute-cache
speed auto
!
interface FastEthernet0.1
shutdown
!
interface Serial0
description HDSL TELECOM
mtu 1600
bandwidth 2048
no ip address
encapsulation frame-relay
no ip route-cache cef
no ip route-cache
no ip mroute-cache
no fair-queue
frame-relay traffic-shaping
!
interface Serial0.1 point-to-point
description Punto-Punto HDSL
bandwidth 2048
ip address AA.BB.122.34 255.255.255.252
ip nat outside
no ip route-cache
no ip mroute-cache
no cdp enable
no arp frame-relay
frame-relay class CIR1024
frame-relay interface-dlci 458 IETF
!
ip nat inside source list 1 interface Serial0.1 overload
ip nat inside source static 192.168.1.40 interface Loopback0
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0.1
no ip http server
!
!
map-class frame-relay CIR1024
frame-relay cir 1984000
frame-relay mincir 1024000
access-list 1 permit 192.168.1.0 0.0.0.255
banner motd ^C ^C
!
line con 0
line aux 0
line vty 0 4
access-class 9 in
login
!
!
end
NAT IP PUBBLICI HDSL
Moderatore: Federico.Lagni
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli