View
20
Download
1
Category
Preview:
Citation preview
Lab: 8 Network Address Translation
NAT
1
2
Practice
3
If you have more than one pc, you have repeat the last command as follow:
…….ip nat inside source static 192.1.1.2 5.1.1.20
4
5
Static NATStep1. Router Conf.
Router0, fastethernet 0/0 Router(config)#interface fastethernet 0/0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no sh
Router0, fastethernet 0/1 Router(config)#interface fastethernet 0/0 Router(config-if)#ip address 192.168.50.1 255.255.255.0 Router(config-if)#no sh
Router(config)#router ripRouter(config-router)#network 192.168.1.1Router(config-router)#network 192.168.50.1Router(config-router)#do wr
Step2. Router Static NAT configuration
Router(config-if)#interface FastEthernet0/0Router(config-if)#ip nat inside
Router(config-if)#interface FastEthernet0/1Router(config-if)#ip nat outideRouter(config-if)#exitRouter(config)#ip nat inside source static 192.168.1.2 192.168.50.10 Router(config)#ip nat inside source static 192.168.1.3 192.168.50.20Router(config)#exit
6
VerifyingRouter#sh run
Now, Send MSG from PC0 to PC3.Catch the MSG on router.
What do you notice?
Overload NAT
*** Delete NAT***Router(config-if)#int f0/0Router(config-if)#no ip nat insideRouter(config-if)#int f0/1Router(config-if)#no ip nat outsideRouter(config-if)#no ip nat inside source static 192.168.1.2 192.168.50.10 Router(config-if)#no ip nat inside source static 192.168.1.3 192.168.50.20Router(config-if)#***********************************
Overload NAT Conf.
Router(config)#in f0/0Router(config-if)#ip nat insideRouter(config-if)#int f 0/1Router(config-if)#ip nat outsideRouter(config-if)#exitRouter(config)#access-list 50 permit 192.168.1.0 0.0.0.255Router(config)#ip nat pool Alaflaj 192.168.50.50 192.168.50.50 netmask 255.255.255.0
7
Router(config)#ip nat inside source list 50 pool alaflaj overloadRouter(config)#exit
VerifyingRouter#sh run
Now, Send MSG from PC0 to PC3.Catch the MSG on router.
Your Notice??????
8
Recommended