Jeremy's IT Lab
Day 44 LabIP Services

Static NAT

14m4 chapters70 cues7 cards1 lab
Day 44 LabYT: vir6n_NVZFw
00:00 / 14:12

Synchronized Transcript

70 cues indexed • Click dialogue or words to jump
Jeremy

Welcome to Jeremy’s IT Lab. This is a free, complete course for the CCNA. If you like these videos, please subscribe to follow along with the series.

Jeremy

Also, please like and leave a comment, and share the video to help spread this free series of videos. Thanks for your help. Also, remember to sign up via the link in the description to get all of the lab files for this course, so you can try it out yourself in packet tracer.

Jeremy

If you want more labs like these, I highly recommend picking up Boson’s NetSim for the CCNA. It’s a network simulator with tons of guided labs covering all of the topics you need to know for the CCNA.

Jeremy

Click the link in the video description to check it out. In this lab we’ll practice configuring static NAT on R1.

Jeremy

PCs 1, 2, and 3 have private IP addresses, so they are unable to access the Internet. We need to configure NAT on R1 to allow them to use the Internet, for example to access 8.8.8.8, a DNS server.

Jeremy

So let’s do step 1, which is to ping from PC1 to 8.8.8.8. So, from the CLI of PC1 I’ll try that.

Jeremy

PING 8.8.8.8. It will take a bit of time for each ping to timeout, but all four pings should fail. R1 will try to send the pings out over the Internet, but the ISP will simply drop the traffic, because of the private IP address.

Jeremy

So let’s get right into static NAT configuration on R1 in step 2. First, let’s configure the inside and outside interfaces.

Jeremy

ENABLE. CONF T. INTERFACE G0/0. Is this the inside or outside interface? Well, it’s the interface connected to the Internet, to the external network, so it’s the outside interface.

Jeremy

IP NAT OUTSIDE. And next, INTERFACE G0/1. This interface is connected to the internal network, so IP NAT INSIDE.

Jeremy

Okay, next let’s configure those static NAT mappings. EXIT. So, we’ll map each PC’s private IP to a public IP in the 100.0.0.0/24 subnet.

Jeremy

I’ll do PC1 first. IP NAT INSIDE SOURCE STATIC 172.16.0.1, and then I’ll map it to 100.0.0.1, keeping the host portion the same to make it simple.

Jeremy

Next I’ll hit the up arrow, and change these addresses to 100.0.0.2 and 172.16.0.2 for PC2. And then do that again, 100.0.0.3 and 172.16.0.3 for PC3.

Jeremy

And that’s it, our static NAT configuration is done. EXIT. Now, before trying that ping again from PC1 let’s check the NAT translations and statistics.

Jeremy

SHOW IP NAT TRANSLATIONS. Here you can see the three static mappings we just configured, mapping these inside local addresses to inside global addresses.

Jeremy

Now let’s check the statistics. SHOW IP NAT STATISTICS. Okay, 3 total translations, and here are the outside and inside interfaces we configured.

Jeremy

Now let’s try some pings and then we’ll check the translations again after. First I’ll ping from PC1 to 8.8.8.8.

Jeremy

PING 8.8.8.8. Okay, the ping works this time. Then, step 4 says to ping google.com from each PC.

Jeremy

I’ve configured 8.8.8.8 as the DNS server of each PC, so they should contact 8.8.8.8 to learn the IP of google.com, and then they should be able to ping google.com.

Jeremy

So, PING google.com. Okay, it works. Now I’ll try to ping google from PC2. PING google.com.

Jeremy

Okay, it works here too. And finally the same from PC3. PING google.com.

Jeremy

Okay, the ping works, so let’s check the translations on R1. SHOW IP NAT TRANSLATIONS. Okay, there are a lot of translations this time.

Jeremy

Here you can see the static translations, still in the table. Below them are three UDP translations, all for destination 8.8.8.8 port 53.

Jeremy

These dynamic entries are for when PC1, 2, and 3 used DNS to learn the IP of google.com. And all of these entries up above are for the pings.

Jeremy

Notice, as I pointed out in the lecture, that the inside local address is translated to the inside global address, but the outside local and outside global addresses are the same.

Jeremy

That’s because we’re only doing source NAT, not destination NAT. Okay, finally step 5 is to clear the NAT translation table.

Jeremy

So, the command is CLEAR IP NAT TRANSLATION, and then an asterisk. Now let’s check which entries remain. SHOW IP NAT TRANSLATIONS.

Jeremy

All of the dynamic entries are gone, and only the static entries remain. As I mentioned in the lecture, the dynamic entries will timeout after a certain period of time and be cleared from the table, but this command lets you manually clear them.

Jeremy

Okay, so in this lab we practiced configuring static source NAT. That’s all for this lab. Next, let’s take a look at a bonus practice lab from Boson Software’s NetSim for CCNA.

Jeremy

Okay here's today's Boson NetSim practice lab. So the lab I have selected is Static NAT 1. So in Boson NetSim for CCNA there are five different NAT labs, and two of them cover static NAT.

Jeremy

So here is the lab topology, and it looks like we are going to configure NAT here on Router4, because it's connected to what seems like an internet router, and this is its internal network with switch1, switch2, and two PCs, PC1 and PC3.

Jeremy

So these are the commands you need to know. All commands we've already covered in the lecture video.

Jeremy

The IP addresses of each device and here are the lab tasks. Okay, so there are eleven steps in this one single lab task, so let's go through all of them.

Jeremy

First, attempt to ping from PC1 to Router3. Was the ping successful? Why or why not. Okay, so I will open up PC1.

Jeremy

And attempt to ping Router3. Let's see if that works. Was it .1.1?

Jeremy

Yes. Okay it seems the ping is not working.

Jeremy

Okay, so perhaps Router3 is a internet router, so it is not accepting these pings that have a source IP address that is a private IP address.

Jeremy

Okay, on Router4 configure NAT to statically translate PC1's IP address to 180.10.1.15. Okay, so let's do that.

Jeremy

So I'll open the CLI of Router4. The password is cisco, okay. So let's configure that mapping.

Jeremy

IP NAT INSIDE SOURCE STATIC, and then PC1's IP address is, here it is. 192.168.1.2.

Jeremy

And we will map it to 180.10.1.15. Okay, so we've configured the mapping, but that's not all you need to configure for static NAT, as you know.

Jeremy

Okay, which interface should be configured as the inside interface on Router4? Okay, so it should be fastethernet0/1, that is the inside interface.

Jeremy

And then the outside will be serial0/0. Okay, so let's configure those interfaces.

Jeremy

INTERFACE FASTETHERNET0/1 is the inside, so IP NAT INSIDE. And INTERFACE SERIAL0/0. IP NAT OUTSIDE.

Jeremy

Okay and let's try that ping again from PC1 to Router3. Okay, it works. Perfect.

Jeremy

Okay let's check that NAT translation table on Router4. DO SHOW IP NAT TRANSLATION.

Jeremy

Okay so we have the static mapping here. Looks like there are two entries for that. I'm not sure about why that is. And then the entry for the ping we just issued.

Jeremy

The inside local IP address is translated to what inside global address? Well that's what we just configured, 180.10.1.15.

Jeremy

Does the inside global IP address normally represent a public or a private IP address? Well it normally represents a public IP address because it is the global one, it's what the outside network, for example the internet, knows.

Jeremy

And you can't use private IP addresses on the Internet. Okay, step 8. On Router4 configure NAT to statically translate PC3's IP address to this IP, .16.

Jeremy

Okay so let's do that. IP NAT INSIDE SOURCE STATIC 192.168.1.3, is PC3's IP address.

Jeremy

And 180.10.1.16. Okay, so display the NAT translation table again.

Jeremy

Let's do that. Okay, I can see mapping for both of them. So, 192.168.1.3 is mapped to .16.

Jeremy

Okay let's try that ping, from, oh it says from Router3 to PC1. Interesting, okay. So I will open up Router3.

Jeremy

That is here. Router3 attempting to ping PC1. So, I think this will not work because it's a router out on the Internet trying to ping a public, oh sorry not a public, a private IP address.

Jeremy

So that should fail. But let's try. PING 192.168.1.2. Yes, and that U means unreachable, okay.

Jeremy

Attempt to ping from Switch2 to Router3. From Switch2, does Switch2 have an IP address?

Jeremy

Let's check. SHOW IP INTERFACE BRIEF. Okay, it does have an IP address.

Jeremy

But NAT is not configured on Router4 to translate Switch2's IP address, so this should not work.

Jeremy

But let me try. PING 180.10.1.1. Okay, and just like in the beginning with PC1, no NAT is configured for Switch2's IP address, so Switch2 is not able to ping Router3.

Jeremy

Okay so that's all for this lab. I'm going to click on the grade lab function here, and let's see if I did everything correctly.

Jeremy

Okay, yes I did, awesome. Great, and by the way if you ever have any problems during these labs in NetSim, Boson provides solutions down at the bottom here, with some great explanations, actually if you want to read these you can pause the video, I'll scroll through them.

Jeremy

Okay, so that was a quick look at a lab in Boson Software's NetSim for CCNA. NetSim has over 100 guided labs like these. Some of them are pretty short and simple like this one, but then some of them are actually quite difficult and complicated.

Jeremy

So I think it's a great study resource, a great labbing resource for the CCNA. If you want to get NetSim, please follow the link in the video description.

Jeremy

Before finishing today’s video I want to thank my JCNP-level channel members. To join, please click the ‘Join’ button under the video. Thank you to Anand, Pavel, Abraham, Serge, Njoku, Viktor, Roger, Raj, Kenneth, Seamus, H W, Brandon, Aaron, Marcel, Kone, Donald, C Mohd,

Jeremy

Gustavo, Anthony, Benjamin, Tshepiso, Justin, Prakaash, Nasir, Erlison, Marko, Daming, Ed, Value, John, Funnydart, Velvijaykum, Mark, Yousif, Boson Software, Devin, Lito, Yonatan, and Vance.

Jeremy

Sorry if I pronounced your name incorrectly, but thank you so much for your support. This is the list of JCNP-level members at the time of recording by the way, March 20th 2021.

Jeremy

If you signed up recently and your name isn’t on here don’t worry, you’ll be in future videos. Thank you for watching.

Jeremy

Please subscribe to the channel, like the video, leave a comment, and share the video with anyone else studying for the CCNA. If you want to leave a tip, check the links in the description.

Jeremy

I'm also a Brave verified publisher and accept BAT, or Basic Attention Token, tips via the Brave browser. That's all for now.

Keyboard shortcuts

Shortcuts are ignored while you are typing in a search box, note field, or the scratchpad.

Playback

SpaceK
Play or pause
←→
Seek 5 seconds
JL
Seek 10 seconds
C
Toggle in-video captions

Scrubber (when focused)

←→
Seek 5 seconds
Shift←/→
Seek 10 seconds
Page UpPage Down
Seek 30 seconds
HomeEnd
Jump to start or end

Flashcards

Space
Reveal the answer
1234
Grade Again / Hard / Good / Easy

Navigation

←→
Move between study-mode tabs
HomeEnd
First or last study-mode tab
?
Open or close this sheet