cisco路由器综合实验之三 网络地址转换(NAT)

 

 

R1(config)#ip nat inside source static 192.168.0.2 20.0.0.1

R1(config)#int f0/0
R1(config-if)#ip nat inside

R1(config)#int f1/0
R1(config-if)#ip nat outside

R1(config)#int f2/0
R1(config-if)#ip nat outside

R1(config)#ip route 123.0.0.0 255.255.255.240 10.0.0.6
R1(config)#ip route 222.222.222.0 255.255.255.192 20.0.0.2
--------------------------------------------------------------------------------
R2(config)#ip nat pool LAN 222.222.222.1 222.222.222.62 netmask 255.255.255.192
R2(config)#access-list 100 permit ip any any
R2(config)#ip nat inside source list 100 LAN overload

R2(config)#int f0/0
R2(config-if)#ip nat inside

R2(config)#int f1/0
R2(config-if)#ip nat outside

R2(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
--------------------------------------------------------------------------------
R3(config)#ip nat pool LAN 123.0.0.1 123.0.0.14 netmask 255.255.255.240
R3(config)#access-list 100 permit ip any any
R3(config)#ip nat inside source list 100 LAN

R3(config)#int f0/0
R3(config-if)#ip nat inside

R3(config)#int f1/0
R3(config-if)#ip nat outside

R3(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.5

 

 

你可能感兴趣的:(source,Cisco,NAT,路由器)