so we ping from John to Dave... and it gets translated in Jamaica? hmm so far not working...i set ip nat inside on the fast0/0 int, and ip nat outside on serial1/0 int on Jamaica...
NAT Dynamic Troubleshooting
Scenario:
Working for a company based in the caribbean isn't such a bad life. The sun is always shining and when there is no work you can relax at the beach. Today however you get a stress call from a junior network engineer who tried to replace a failed router. He claims to have configured NAT (network address translation) correctly but it's not working. Time for you to fix the problem!
Goal:
- All IP addresses have been preconfigured for you as following:
192.168.XY.X /24 where X = router1 and Y = router2.
for example: 192.168.58.5 between router5 and router8. - You are only allowed to make changes on router Jamaica.
- Your ISP has given you the 172.16.1.0/24 subnet to use for the NAT translation.
- Do not use show run! (this will spoil the fun :) use the appropiate 'show' and 'debug' commands. This will teach you the skills needed to become a true troubleshooting master.
- You need to make sure the 192.168.12.0 /24 subnet is translated into the IP addresses the ISP gave you when router John communicates with router Dave.
It took me 1000s of hours reading books and doing labs, making mistakes over and over again until I mastered all the troubleshooting issues for CCNP.
Would you like to be a master of troubleshooting too? In a short time without having to read 900 page books or google the answers to your questions and browsing through forums?
I collected all my knowledge and created a single ebook for you that has everything you need to know to become a master of troubleshooting.
You will learn all the secrets about NAT/PAT troubleshooting and more.
Does this sound interesting to you? Take a look here and let me show you how to Master CCNP TSHOOT
IOS:
c3640-jk9s-mz.124-16.bin
Topology:

Video Solution:
You need to register to be able to download the GNS3 Topology File. (Registration is Free!)
- Related Articles
Comments (26)
-
talaltk 2010-12-05 14:02:32grrrr i cant do it :'( seems so simple...
-
ReneMolenaar 2010-12-05 17:22:54Well there are a number of steps to make NAT work:
- Specify the inside and outside interfaces.
- Specify what the source and destination for the translation will be.
- Make sure that routers know where to send traffic...so check your routing tables.If you have difficulty with solving this lab it's a good idea to draw the topology on a piece of paper and "follow the packet". Just draw what is supposed to happen and what could possibly go wrong.
-
talaltk 2010-12-06 10:04:19ok so this is what i did.
ip nat inside = int fast0/0
ip nat outside = int serial 1/0since we need to translate 192.168.12.0 network to 172.16.1.0/24 network
configured a ip nat pool specifying the 172.16.1.1 to 172.16.1.10
configuring an access list to permit the 192.168.12.0 network
Am i supposed to do anything else? cuz as far as i know this is all it takes to translate inside local address 192.168.12.0 to the 172.16.1.0 network.
i also confiugued an ip default-gateway to the 192.168.23.3 (Florida) router but still didnt work grrrrrr.
hmmmm

-
ReneMolenaar 2010-12-06 15:42:41Ok so this is what you did?
1) Configure the inside and outside interfaces.
2) Configure an access-list to match the inside hosts.
3) Configure a pool to translate into.
4) Use the 'ip nat inside source' command to bring 2+3 together.Once you have done that...follow the packet in your mind and try to think about the decisions the router(s) have to make and why it isn't working.
-
talaltk 2010-12-06 17:19:19oh ok solved was a silly mistake
...the problem was witht he access list grrrrrrrrrrr...its funny how i did the complicated mpls lab succesfully buy got stuck on this simple one ;D
-
ReneMolenaar 2010-12-06 23:52:12No worries i know how that feels...i get caught by small mistakes all the time, especially after labbing all day long

-
eightsixstud 2010-12-22 04:11:27I am able to get NAT working, but I have to make a change on the Florida router to route the 172.16.1.X traffic back to the Jamaica router.
In the instructions you are only suppose to make changes on the Jamaica router, how can I dynamically update the Florida router with the 172.16.1.X network from Jamaica?
-
ReneMolenaar 2010-12-22 20:00:31Hello Alexander,
The answer is in your own question ;D ...dynamically update....
How can we dynamically update another router? *cough* routing protocol *RIP* good luck!

-
eightsixstud 2010-12-22 20:33:46Okay, I solved this after using a loopback interface. Would there be another way to do this without a lookback interface?
-
ReneMolenaar 2010-12-22 20:52:01Yes there is another method. With routing protocols you can advertise something when you have it on an interface. If you don't want it on an interface then it's possible to create a static route pointing to the null0 interface. So in short, it needs to be in your routing table before you can advertise it.
-
eightsixstud 2010-12-23 18:28:59One last question? I got it working using the null0 interface, but is there a reason that you would use a null interface over a loopback interface, or is this purely a personal preference?
Thank you for your help.
-
ReneMolenaar 2010-12-23 18:44:00Hi Alexander,
Using a loopback interface is the best way i'd say...if you advertise it than at least it's reachable. Creating a static route pointing to null0 will 'blackhole' it. Only reason i can think of is you would do a CCIE exam and they state that you have to advertise a prefix but are not allowed to use a loopback or physical interface.
Rene
-
stefanx 2011-03-04 22:40:46I have added static route pointing to fa0/0 as per design but it's working with Null0 as well

Jamaica#show ip nat translations
Jamaica#
Dave#traceroute 192.168.12.1Type escape sequence to abort.
Tracing the route to 192.168.12.11 192.168.34.3 56 msec 92 msec 8 msec
2 192.168.23.2 64 msec 32 msec 0 msec
3 172.16.1.1 76 msec * 100 msecJamaica#show ip nat translations
Pro Inside global Inside local Outside local Outside global
udp 172.16.1.1:33437 192.168.12.1:33437 192.168.34.4:49207 192.168.34.4:49207
udp 172.16.1.1:33438 192.168.12.1:33438 192.168.34.4:49208 192.168.34.4:49208
udp 172.16.1.1:33439 192.168.12.1:33439 192.168.34.4:49209 192.168.34.4:49209
udp 172.16.1.1:33440 192.168.12.1:33440 192.168.34.4:49210 192.168.34.4:49210
udp 172.16.1.1:33442 192.168.12.1:33442 192.168.34.4:49212 192.168.34.4:49212
--- 172.16.1.1 192.168.12.1 --- ---
Jamaica#
-
ReneMolenaar 2011-03-14 15:10:43Good job. If it's in the routing table it's ok...null0 will do the job as well.
-
waschman 2011-05-17 16:38:20This is embarrasing... I have forgot about the details about NAT.
I have configured the lab and I can not see the translations when I ping, even though the ping is successfull, the NAT translation isn't:
From John to Dave
From Dave to John
But if I do a traceroute from Dave to John, I get the following NAT translation:
-----------------------------------------------
Jamaica#show ip nat translations
Pro Inside global Inside local Outside local Outside global
udp 172.16.1.1:33437 192.168.12.1:33437 192.168.34.4:49167 192.168.34.4:49167
udp 172.16.1.1:33438 192.168.12.1:33438 192.168.34.4:49168 192.168.34.4:49168
udp 172.16.1.1:33439 192.168.12.1:33439 192.168.34.4:49169 192.168.34.4:49169
udp 172.16.1.1:33440 192.168.12.1:33440 192.168.34.4:49170 192.168.34.4:49170
udp 172.16.1.1:33442 192.168.12.1:33442 192.168.34.4:49172 192.168.34.4:49172
icmp 172.16.1.1:4194368 192.168.12.1:4194368 192.168.34.4:1702719456 192.168.34.4:1702719456
icmp 172.16.1.1:1612683140 192.168.12.1:1612683140 192.168.34.4:7 192.168.34.4:7
--- 172.16.1.1 192.168.12.1 --- ---Can someone please tell me why the ping is not translated? Or at lease tell me where to look further?
By the way, as maybe you have guessed from my output; Router Florida can see the route to 172.16.1.0/16 network
Best regards,
WaschmanHmm, I have problems posting a comment. I am registered to this website and when I try to post a comment I have to put in the name. But when I enter the name it says that I am already registered. Therefore I changed the name to waschman2
-
waschman2 2011-05-18 08:09:47I tried to configure PAT instead and that works perfectly! But not with a standard access-list. I changed my ACL to an extended ACL and then it worked.
First I tried with an ACL with number 101 (extended) but it didn't work. Then I tried to use a named extended ACL with name=NAT and then it worked. Strange!
I am using IOS:
Cisco IOS Software, 3600 Software (C3640-IK9O3S-M), Version 12.4(3), RELEASE SOFTWARE (fc2)Good lab!
Keep up the good work

-
mattsface 2011-10-06 09:40:50hahaha this was an awesome lab!! I wouldn't even think about doing something like this. I was clueless until I read the comments


keep up the good work man!! btw I'm @matthewsface on twitter

-
ReneMolenaar 2011-10-07 11:31:47Glad you guys like it!
-
Allex 2011-10-16 21:17:52great lab. I admit I read some of the comments until I solved it. I'm preparing for tshoot and your labs are really helping. Maybe you can create more tshoot labs.
Thanks.
-
Allex 2011-10-16 21:20:00P.S. The video you recorded is for another lab.
-
ReneMolenaar 2011-10-17 00:19:02Hi Alex,
Thanks for letting me know about the video, the correct one is here now. Last friday I uploaded the TSHOOT topology (preconfigured). I'll be using it to build TSHOOT labs that represent the exam asap

-
zazee123 2012-01-21 03:30:15thank u for ur lab it's really fan i solved it without using any change on the routing process.
the mistakes founded :
1- inside , outside used on the wrong way
2- mistake on wilcard mask
3-disable the old translation with the new one.
but i want to know how could the router update dynam another router using the routing process.i wanna to explain me how could florida router knows 172.168.1.0/24 without informing on it routing table and without using any static link.
plz answer soon as possible
-
ReneMolenaar 2012-05-01 11:03:58Hi Zazee,
Maybe you have seen my solution by now but I'll still answer it. It's impossible to advertise something you "don't have" so you'll have to put it on an interface in order to advertise it. A loopback works well for this purpose.
-
mohammadsaeed01 2012-04-29 12:36:01Hi Rene,
I'd like to thank you very much about ur strong effort.
I solved this problem by using ip default gateway between Jamaica and Florida
Jamaica : ip route 0.0.0.0 0.0.0.0 192.168.23.3Florida : ip route 0.0.0.0 0.0.0.0 192.168.23.2
But I liked ur solution it's innovated..

-
ReneMolenaar 2012-05-01 11:05:29Thank you Mohammad!
Static routes can solve about any problem but sometimes it's better to use a more "dynamic" solution. Routing protocols can recover by themselves when you have a link failure or some other issues






