NAT Config
NAT Config
Address Translation)
Configuration for
CCNA Students
By
Eng. Abeer Hosni
https://www.facebook.com/groups/1720572871550995/
Lab 1 (Static NAT with static routing):
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#int f0/1
R1(config-if)#no shutdown
R2(config-if)#no shutdown
R2(config)#ip route 192.168.0.0 255.255.255.0 f0/0
R2(config)#line vty 0 4
R2(config-line)#password 123
R2(config-line)#login
To Test Connectivity:
C:\Users\abeer>ping 11.0.0.2
R2#show users
R1(config)#int f0/0
R1(config-if)#int f0/1
To Test Connectivity:
C:\Users\abeer>ping 11.0.0.2
To Test Connectivity:
C:\Users\abeer>ping 11.0.0.2
R2#show users
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
R1(config)#router eigrp 1
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.0.1 0.0.0.0
Solution 1:
R1(config)#router eigrp 1
Solution 2:
R1(config)#router eigrp 1
Solution 3:
R1(config)#int loop 1
R1(config)#router eigrp 1
Solution 4:
R1(config)#int loop 1
R1(config)#router eigrp 1
R1(config-router)#redistribute connected
To Test Connectivity (The network should be pingable using any of the four solutions):
C:\Users\abeer>ping 11.0.0.2
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#int f0/1
R1(config-if)#no shutdown
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config)#line vty 0 4
R2(config-line)#password 123
R2(config-line)#login
Now we will configure dynamic NAT on R1 using the pool 11.0.0.3 to 11.0.0.5.
R1(config)#int f0/0
R1(config-if)#int f0/1
R2#show users
Solution 1:
<Output Omitted>
R1(config)#router eigrp 1
R1(config-router)#no auto-summary
R1(config-router)#redistribute static
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
Note: Since the 50.0.0.0 in the routing table is not via a direct connected interface, it can’t be
advertised using the network command under the eigrp process but using redistribution only.
Solution 2:
R1(config)#router eigrp 1
Solution 3:
R1(config)#router eigrp 1
Solution 4:
R1(config)#int loop 1
R1(config)#router eigrp 1
Solution 5:
R1(config)#int loop 1
R1(config)#router eigrp 1
R1(config-router)#redistribute connected
To Test Connectivity (The network should be pingable using any of the four solutions):
C:\Users\abeer>ping 11.0.0.2
R2#show users
Lab 5 (PAT):
R1(config)#int f0/0
R1(config-if)#int f0/1
R1(config-if)#no shutdown
R1(config-if)#router eigrp 1
R1(config-router)#no auto-summary
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#router eigrp 1
R2(config-router)#no auto-summary
R2(config-router)#line vty 0 4
R2(config-line)#password 123
R2(config-line)#login
The network should be pingable and converged now.
R1(config)#int f0/0
R1(config-if)#int f0/1
The network should be still pingable and converged. After telnet from the client to 11.0.0.02:
R2#show users
To verify:
<Output Omitted>
Hint)
PAT with multiple public IP addresses is configured using the same dynamic NAT configuration
but with the overload keyword which allows each public IP address to support multiple
sessions.
Best wishes
Abeer