I have NAT set up on my internet router, for all the networks on all 3 routers. The networks are as follows:
192.168.1.0
192.168.20.0
192.168.30.0
192.168.40.0
192.162.50.0
See the config below of my internet router to see how I set up NAT...
1720#sh run
Building configuration...
Current configuration : 1209 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname 1720
!
enable secret 5 $1$5wd0$Y0RB
!
memory-size iomem 15
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
no ip source-route
!
!
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Ethernet0
ip address dhcp
ip nat outside
no ip route-cache
no ip mroute-cache
half-duplex
no cdp enable
!
interface FastEthernet0
ip address 192.168.1.75 255.255.255.0
ip nat inside
speed auto
!
interface Serial0
ip address 192.168.20.1 255.255.255.0
no fair-queue
!
ip nat inside source list 100 interface Ethernet0 overload
ip nat inside source static tcp 192.168.1.100 3389 interface Ethernet0 3389
ip classless
no ip http server
ip pim bidir-enable
!
!
access-list 1 permit 1.2.3.4
access-list 1 permit 1.2.3.5
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 100 permit ip 192.168.0.0 0.0.255.255 any
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
access-class 1 in
exec-timeout 0 0
password 7 08364341021000
login
!
end
1720#
-------------------------------------------
This is "Show IP Route" on the internet router:
Gateway of last resort is 6.71.21.193 to network 0.0.0.0
S 192.168.30.0/24 [1/0] via 192.168.20.2
6.0.0.0/26 is subnetted, 1 subnets
C 6.71.21.192 is directly connected, Ethernet0
C 192.168.20.0/24 is directly connected, Serial0
C 192.168.1.0/24 is directly connected, FastEthernet0
S* 0.0.0.0/0 [254/0] via 6.71.21.193
----------------------------------------------
This is the config from the 2nd router:
2520#sh run
Building configuration...
Current configuration : 1450 bytes
!
version 12.2
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname 2520
!
logging rate-limit console 10 except errors
enable secret 5 $1$knz9$OcAVuo/h4
enable password 7 14141B180F0B
!
ip subnet-zero
no ip finger
ip name-server 6.71.1.2
!
no ip dhcp-client network-discovery
!
!
!
!
interface Ethernet0
description LAN link to 1924 switch
ip address 192.168.30.1 255.255.255.0
!
interface Serial0
description WAN link to 1720 router
ip address 192.168.20.2 255.255.255.0
no fair-queue
clockrate 64000
!
interface Serial1
description WAN link to 2524 router
ip address 192.168.40.1 255.255.255.0
encapsulation lapb
invert txclock
!
interface Serial2
no ip address
shutdown
clockrate 64000
!
ip kerberos source-interface any
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.20.1
ip http server
!
!
banner motd ^C
welcome to the 2520 router
^C
!
line con 0
password 7 15011F09122F
logging synchronous
login
transport input none
line aux 0
line vty 0 4
exec-timeout 0 0
password 7 010012014D0E
login
!
end
2520#
-------------------------------------------------
This is the "Show IP Route" from the 2nd router:
Gateway of last resort is 192.168.20.1 to network 0.0.0.0
C 192.168.30.0/24 is directly connected, Ethernet0
C 192.168.20.0/24 is directly connected, Serial0
S* 0.0.0.0/0 [1/0] via 192.168.20.1
--------------------------------------------------
From a PC on the 192.168.30.0 LAN (the LAN connected to the 2nd router), I can ping the internet interface, Ethernet 0 (which has the IP assigned by my ISP via DHCP: 6.71.21.209). But I can't ping anything beyond this interface, or surf the web. If I try to ping a website by name from the 2nd router, it can't resolve the name...even though I have my ISP's DNS server set up in the "IP Name-Server" command. However, I can ping by name from the internet router.