cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
482
Views
5
Helpful
2
Replies

Trying to Configure Dynamic NAT on Router1

ethin.svoboda
Level 1
Level 1

Below is my code I've ran throughout my lab. I have 3 routers, 2 laptops, a server, and a switch. I'm trying to currently configure Dynamic NAT on router 1 so I can ping 99.98.97.130 which is router 3 from laptop 1. I also posted an attachment of a picture of what my diagram currently looks like for further explanation.

 

Svoboda_RTR_01#sh run

Building configuration...

 

Current configuration : 1149 bytes

!

version 15.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Svoboda_RTR_01

!

!

!

!

!

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface GigabitEthernet0/0/0

no ip address

ip nat outside

duplex auto

speed auto

!

interface GigabitEthernet0/0/1

ip address 172.16.1.1 255.255.255.0

ip nat inside

duplex auto

speed auto

!

interface GigabitEthernet0/0/2

no ip address

duplex auto

speed auto

!

interface Serial0/2/0

ip address 99.98.97.2 255.255.255.128

ip nat inside

clock rate 2000000

!

interface Serial0/2/1

no ip address

clock rate 2000000

!

interface Vlan1

no ip address

shutdown

!

ip nat pool Svoboda_NAT_Pool 99.98.97.2 99.98.97.128 netmask 255.255.255.0

ip nat inside source list 1 pool Svoboda_NAT_Pool

ip nat inside source list 20 interface Serial0/2/0 overload

ip classless

!

ip flow-export version 9

!

!

access-list 1 permit 0.0.0.0 255.255.255.0

access-list 20 permit 172.16.1.0 0.0.0.255

access-list 20 permit 10.0.0.0 0.0.0.255

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

 

 

Svoboda_RTR_01#

 

 

2 Replies 2

Hello,

 

it is a bit unclear what you are trying to accomplish. Which of the routers is router 3 ? Your network 99.98.97.0/26 is on the NAT inside, and your NAT pool has an IP address range from that same, inside network ?

 

interface Serial0/2/0

ip address 99.98.97.2 255.255.255.128

ip nat inside

clock rate 2000000

 

ip nat pool Svoboda_NAT_Pool 99.98.97.2 99.98.97.128 netmask 255.255.255.0

 

Can you post the zipped Packet Tracer project (.pkt) file ?

Hello
If you have reachability between rtr1-rtr3 via rtr2 then you just need to amend your nat configuration on rtr1.


conf t
no access-list 1
no access-list 20
no ip nat pool Svoboda_NAT_Pool 99.98.97.2 99.98.97.128 netmask 255.255.255.0
no ip nat inside source list 1 pool Svoboda_NAT_Pool
access-list 20 permit 172.16.1.0 0.0.0.255

interface Serial0/2/0
no ip nat inside
ip nat outside

ip route 0.0.0.0 0.0.0.0 serial0/2/0 99.98.97.X < rtr2 nexthop address>
(note the default is on the assumption you dont have any other default route on R2/R3 pointing back to RTR1)


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul