静态NAT配置实验
2.默认路由配置
R2:
Router(config)#ip route 0.0.0.0 0.0.0.0 211.84.144.2
R3:
Router(config)#ip route 0.0.0.0 0.0.0.0 211.84.144.1
3.配置静态NAT
R2:
Router(config)#int f0/0 Router(config-if)#ip nat inside Router(config-if)#exit Router(config)#int f0/1 Router(config-if)#ip nat outside Router(config-if)#exit Router(config)#ip nat inside source static 192.168.1.10 211.84.144.1
查看:
Router#show ip nat trans Router#show ip nat translations Pro Inside global Inside local Outside local Outside global --- 211.84.144.1 192.168.1.10 --- ---
网络端口地址转换NATP配置实验
2.默认路由配置
R0:
Router(config)#ip route 200.1.2.0 255.255.255.0 200.1.1.2
R1:
Router(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1
3.配置动态NATP
R0:
Router(config)#int f0/0 Router(config-if)#ip nat inside Router(config-if)#exit Router(config)#int f0/1 Router(config-if)#ip nat outside Router(config-if)#exit Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255 Router(config)#ip nat pool msq 200.1.1.3 200.1.1.3 netmask 255.255.255.0 Router(config)#ip nat inside source list 1 pool msq overload
查看:
Router#show ip nat translations Pro Inside global Inside local Outside local Outside global tcp 200.1.1.3:1025 192.168.1.3:1025 200.1.2.10:80 200.1.2.10:80