Configuring Static NAT, Dynamic NAT and PAT, Packet Tracer v.7.2
HTML-код
- Опубликовано: 7 сен 2024
- www.youtube.co....
Download Packet Tracer source files:
drive.google.c...
download the lab walk through:
drive.google.c...
Today’s video is about NAT ( Network Address Translation).
NAT in which a private IP address is mapped to a public IP address, where the public address is always the same IP address.
Static NAT creates a fixed translation of private addresses to public addresses, the main difference between dynamic NAT and Static NAT is that the static NAT allows a remote host to initiate a connection to a translated host if an access list exists that allows it, while dynamic NAT does not.
Dynamic network address translation Dynamic NAT is a technique in which multiple public internet protocol (IP) addresses are mapped and used with an internal private IP address.
Now
We want to configure a static NAT to the PC-1 of 192.168.1.2 so it can reach the servers on the internet.
On Router1
int s0/0/0
ip nat outside
int g0/0
ip nat inside.
ip nat inside source static 192.168.1.2 10.1.1.11
Run this command:
show ip nat translations
Now, ping the server.
ping 8.8.8.8
Now we will configure dynamic NAT on the Router, to allow the network of 192.168.2.0 to access the internet.
Let us ping the default gateway.
ping 192.168.2.1
Let us run a ping from a PC to the DNS server.
ping 8.8.8.8
Let us configure dynamic NAT on the Router.
int s0/0/0
ip nat outside
int g0/0
ip nat inside
Now configuring an access list for the network
access-list 1 permit 192.168.2.0 0.0.0.255
ip nat pool NAT 10.1.1.5 10.1.1.10 netmask 255.255.255.0
ip nat inside source list 1 pool NAT
Now, let us create NAT overloading or PAT.
Here we will have these two PCs to be nated to the IP address of the router.
On Router1
int s0/0/0
ip nat outside
int g0/0
ip nat inside
ip nat inside source list 1 interface s0/0/0 overload
access-list 1 permit 192.168.1.0 0.0.0.255
Let us enable telnet on Router2
line vty 0 4
login
password cisco
enable password cisco
Let us telnet to the router from one of the PCs.
Then run the command :
show ip nat translations.
Thanks Saleh. Much appreciated - just left for us to practice. Its never in vain
You made it very easy for me, many thanks..!!
Thank you so much, best video on this topic
really good
Where is the part that you did routing? This will not work without routing.
Hi Sales,
It would be great to have in the list "download the lab walk through:" the previous configurations of the network. I am just a beginner and I'm struggling to understand how R2 is making the translations of the servers from private IPs to public because we have only one public address and 3 devices in the private network.
Thank you for your time and good explanations.
what to give in "source static private IP" if DHCP is enabled on private network. If I give current IP, then it will be changed later because it is getting from DHCP server present in the same private n/w
Good day Saleh, why don't use "enable secret" rather "enable password"?
Enable secret is better and more secure.
Sir can you make cli it black