Hi guys,
Just playing around with NAT for my icnd2 studies and have come to abit of a stumbling block...
Firstly i have a simple topol with two routers with a back to back serial connecting them. All i am trying to do is allow the hosts on the LAN on each local side of the routers to use there serial IP address.
i have applied ip nat outside to both serial's and ip nat inside to both ethernets. i then create an standard acl with permit 192.168.1.0 0.0.0.255 and 192.168.2.0 0.0.0.255.
i then apply nat overload using ip nat inside source list 1 int s 0/0 overload.
So when i configure say, R1, hosts from R2's LAN can ping R1's lan and they get a source response of R1's serial int IP and all is OK. btw, hosts on R1's lan can also ping hosts on R2's at this time.
So when i configure NAT overload on R2, hosts from R1's lan cannot ping R2's LAN and vice versa.
Note: i have tried configuring R2 with overload first and when i then configure R1 the same issue happens again.
So when the problem occurs, if i disable nat overload on any one of the routers everything works again and the remaining router (with nat overload still enabled) translates addresses correctly again.
Note: that whether or not nat overload is enabled all interfaces are up and each router can ping all the necessary subnets on one another.
Does anyone have any suggestions on this? i had this working the other day!!!
Here are some show runs:
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
enable secret 5 *****
!
username R2 password 0 cisco
ip subnet-zero
!
!
!
!
key chain 1
key 1
key-string cisco
!
controller E1 1/0
!
!
!
interface FastEthernet0/0
description Local_Lan
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/0
description WAN_Connection to R2
ip address 192.168.3.1 255.255.255.0
ip nat outside
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 1
encapsulation ppp
no fair-queue
ppp authentication chap
!
interface Serial0/1
description WAN connection to R3
ip address 192.168.5.2 255.255.255.0
!
router eigrp 1
network 192.168.1.1 0.0.0.0
network 192.168.3.1 0.0.0.0
network 192.168.5.2 0.0.0.0
no auto-summary
eigrp router-id 192.168.3.2
no eigrp log-neighbor-changes
!
ip nat inside source list 1 interface Serial0/0 overload
ip classless
ip http server
ip pim bidir-enable
!
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 remark NAT ACL
!
line con 0
password **
logging synchronous
login
line aux 0
line vty 0 4
password **
logging synchronous
login
line vty 5 15
password **
logging synchronous
login
!
!
end
And here is R2:
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
enable secret 5 ***
!
username R1 password 0 cisco
ip subnet-zero
!
!
!
!
key chain 1
key 1
key-string cisco
!
!
!
interface Ethernet0/0
description Local_LAN
ip address 192.168.2.1 255.255.255.0
ip nat inside
half-duplex
!
interface Serial0/0
description WAN connection to R1
ip address 192.168.3.2 255.255.255.0
ip nat outside
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 1
encapsulation ppp
no fair-queue
clockrate 512000
ppp authentication chap
!
interface TokenRing0/0
no ip address
shutdown
ring-speed 16
!
interface Serial0/1
description WAN connection to R3
ip address 192.168.4.2 255.255.255.0
clockrate 512000
!
router eigrp 1
network 192.168.2.1 0.0.0.0
network 192.168.3.2 0.0.0.0
network 192.168.4.2 0.0.0.0
no auto-summary
eigrp router-id 192.168.3.2
!
ip nat inside source list 1 interface Serial0/0 overload
ip classless
ip http server
!
access-list 1 permit 192.168.2.0 0.0.0.255
!
line con 0
password **
logging synchronous
login
line aux 0
line vty 0 4
password **
logging synchronous
login
line vty 5 15
password **
logging synchronous
login
!
end
Sorry for the long post but if anyone could help it would be much appreciated. Also when i run show ip nat stat, say if there were 10 hits then there would be 3-4 misses too (if that helps).
Thanks fella's