Setup NAT for the Cisco CCNA w/ Packet Tracer - Part 3

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay a couple more things I want to put some labels here so that you have an idea of what's where so this interface right here the serial interface want to put the number here so it's easy to see in the video 210 0.1 okay and then this one over here will be 210 0.2 all right and those in fact are the addresses I'm just double-checking all right perfect okay and now to make this situation work so that these pcs can ping or communicate all the way over to the server what we need to do is set up some static route so default route on these routers so I'm going to set up a default route on this router so that any traffic it gets if it doesn't know where the destination is it's going to send it out of its serial interface and then likewise on this router I'll set up a static default route so that any information that it gets or any destination IP addresses that it does not understand it would send it out its default route sending it out of its serial interface so to do that it's pretty easy just to open up the router I'm going to get very quickly into global config mode okay so now I'm in global configuration mode and what I'm going to do is do I P route to the 0 0 0 0 and then subnet mask 0.0.0.0 and then a space and then the interface that you want to go out of and that is going to set up a default route out of the serial interface ok so that's good and now on the other router I'll do the same thing so ctrl C takes me back to hit enter takes me back to privileged exec mode compte which is short for configure terminal gets me back to global config and now I can put in a static route IP space route to all zeroes space and same cereal 2/0 so now there are default routes for each one of these routers now this i also configured the second pc off-screen so now this pc should be able to ping the server ok so i'm going to ping 1000 dot 2 5 4 and it might take a second but i should get a response ok there's the response so there's a successful communication so now can communicate across the network so now that the network is finally set up we can demonstrate how nat functions so for instance this server right here is running a web server right i can uh well this is web service so i open up this pc right and what i'm going to do is going to open up this virtual web browser here in packet tracer and i'm going to put in his IP address 10.0.0.0 right and as you can see there is a there's the web server there's the web page the default web page right for the virtual web server so we are able to reach it all right but normally this guy's on a private network we're not going to be able to see him if NAT is operating what we would be doing is we would be putting in the public IP address of the router so this IP address right here so right now if I was to put in tho 200 dot 10 dot 0 dot 2 you see I don't get anything right so I don't get anything when I put in the public IP address of the router right if I want to get to the web page to the web server I've got to put in the private IP address well that's no good that's not how it works in the real world in the real world this private IP address would be hidden so now we're going to do is we're going to set up NAT so that the router translates the private IP address of the web server to the public IP at so we're going to set up a static NAT situation okay static NAT configuration so I'll go to the router and I need to be in global config mode which I am and I'm going to say IP NAT inside notice I'm in global config here router config IP net inside the source B static right it's going to be 10.0.0.0 for this is the private address right the source right and we're going to NAT it to 200 dot 10 dot 0 dot - ok and there it is it's done so IP NAT inside source static the 10 network ten 0.025 4 so this host will be statically mapped to this public IP address on the outside so now all we have to do is go into our interfaces and assign it to the interfaces so I go to the interface int serial 2/0 and I say IP NAT outside hit enter and then interface fastethernet FA 0/0 right now I'm in that interface and I'll say IP NAT and this is the inside of our network right the outside is our serial interface the inside is the Ethernet interface hit enter and so now I have it configured right show run for show running configuration and you can see now that there is my IP NAT outside on the serial to zero on fast ethernet there's my IP net inside there is my configuration command to make nat work right and so now what I can do is I can go to this PC I can open up a web browser and I can put in the public IP address of the router which is HTTP colon forward slash forward slash 210 0.2 and it's translated to the webserver and I get my web page so now the web servers private IP address has been translated to the public IP address and the web servers hiding behind the router
Info
Channel: danscourses
Views: 163,124
Rating: undefined out of 5
Keywords: Cisco, CCNA, NAT, static, configure
Id: bL_fqXvRyUs
Channel Id: undefined
Length: 7min 13sec (433 seconds)
Published: Thu Apr 28 2011
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.