![网络地址转换(NAT)之动态NAT_职场](https://s2.51cto.com/attachment/200906/200906151245076605937.jpg?x-oss-process=image/resize,m_fixed,w_1184)
R(config)#hostname ×××
R(config)#enable secret ×××
R(config)#no ip domain-lookup
R(config)#line console 0
R(config-line)#exec-timeout 0 0
R(config-line)#logging synchronous
R1(config)#interface f0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#interface s1/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config)#access-list 1 permit 10.1.1.0 0.0.0.255
R1(config)#ip nat pool test1 192.168.1.100 192.168.1.150 netmask 255.255.255.0
R1(config)#ip nat inside source list 1 pool test1
R1(config)#interface f0/0
R1(config-if)#ip nat inside
R1(config-if)#ip nat outside
R1(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.2
R2(config)#interface s1/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#interface f0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.0
R2(config-if)#no shutdown
R2(config)#access-list 1 permit 172.16.1.0 0.0.0.255
R2(config)#ip nat pool test2 192.168.1.151 192.168.1.200 netmask 255.255.255.0
R2(config)#ip nat inside source list 1 pool test2
R2(config)#interface s1/0
R2(config-if)#ip nat outside
R2(config-if)#ip nat inside
R2(config)#ip router 10.1.1.0 255.255.255.0 192.168.1.1
![网络地址转换(NAT)之动态NAT_路由_02](https://s2.51cto.com/attachment/200906/200906151245076907156.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![网络地址转换(NAT)之动态NAT_休闲_03](https://s2.51cto.com/attachment/200906/200906151245077004625.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![网络地址转换(NAT)之动态NAT_网络_04](https://s2.51cto.com/attachment/200906/200906151245077088265.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![网络地址转换(NAT)之动态NAT_休闲_05](https://s2.51cto.com/attachment/200906/200906151245077203953.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![网络地址转换(NAT)之动态NAT_路由_06](https://s2.51cto.com/attachment/200906/200906151245077273203.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![网络地址转换(NAT)之动态NAT_休闲_07](https://s2.51cto.com/attachment/200906/200906151245077355421.jpg?x-oss-process=image/resize,m_fixed,w_1184)
实验用到的拓扑图、配置文档和Packet Tracer 5.0实验原文件都已上传,需要的网友,可以随时下载!