conf t
host R0 int fa 0/0
ip address 192.168.1.1 255.255.255.0 no shutdown int s 2/0
ip address 200.1.1.1 255.255.255.0 no shutdown clock rate 64000 en conf t host R1 int s 2/0
ip address 200.1.1.2 255.255.255.0 no shutdown
int fa 0/0
ip address 200.1.2.1 255.255.255.0 no shutdown exit
Router1
Router0
ip route 200.1.2.0 255.255.255.0 200.1.1.2 Router1 exit ip route 192.168.1.0 255.255.255.0 200.1.1.1
end
show ip route
PC1 CMD ping 200.1.2.2 (success) Web浏览器
http://200.1.2.2 (success)
Router0 int fa 0/0
ip nat inside int s 2/0 ip nat outside
exit
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat pool 5ijsj 200.1.1.3 200.1.1.3 netmask 255.255.255.0
ip nat inside source list 1 pool 5ijsj overload (无overload表示多对多,有overload表示多end
show ip nat translations(无结果)
对一)
PC1 Web浏览器
http://200.1.2.2 (success) Router0我 show ip nat translations(有1个结果) PC2 Web浏览器
http://200.1.2.2 (success) Router0 show ip nat translations(有2个结果)