ISP:
Router>en
Router#conf t
Router(config)#hostname ISP
ISP(config)#interface f0/1
ISP(config-if)#ip address 218.87.18.24 255.255.255.0
ISP(config-if)#no sh
ISP(config-if)#end
ISP#
验证在PC拼ISP:
PC>ping 218.87.18.24
Pinging 218.87.18.24 with 32 bytes of data:
Reply from 218.87.18.24: bytes=32 time=73ms TTL=254
Reply from 218.87.18.24: bytes=32 time=41ms TTL=254
Reply from 218.87.18.24: bytes=32 time=36ms TTL=254
Reply from 218.87.18.24: bytes=32 time=39ms TTL=254
Ping statistics for 218.87.18.24:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 36ms, Maximum = 73ms, Average = 47ms
PC>
查看NAT转换表:
R1#show ip nat translations
/协议 /内部全局地址 /内部本地地址 /外部全局地址
Pro Inside global Inside local Outside local Outside global
icmp 218.87.18.23:3 192.168.1.1:3 218.87.18.24:3 218.87.18.24:3
icmp 218.87.18.23:4 192.168.1.1:4 218.87.18.24:4 218.87.18.24:4
icmp 218.87.18.23:5 192.168.1.1:5 218.87.18.24:5 218.87.18.24:5
icmp 218.87.18.23:6 192.168.1.1:6 218.87.18.24:6 218.87.18.24:6
--- 218.87.18.23 192.168.1.1 --- ---
ISP:
Router>en
Router#conf t
Router(config)#hostname ISP
ISP(config)#interface f0/1
ISP(config-if)#ip address 218.87.18.24 255.255.255.0
ISP(config-if)#no sh
ISP(config-if)#end
ISP#
验证在PC拼ISP:
PC>ping 218.87.18.24
Pinging 218.87.18.24 with 32 bytes of data:
Reply from 218.87.18.24: bytes=32 time=53ms TTL=254
Reply from 218.87.18.24: bytes=32 time=21ms TTL=254
Reply from 218.87.18.24: bytes=32 time=36ms TTL=254
Reply from 218.87.18.24: bytes=32 time=39ms TTL=254
Ping statistics for 218.87.18.24:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 36ms, Maximum = 73ms, Average = 47ms
PC>
查看NAT转换表:
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 218.87.18.21:30 192.168.1.1:30 218.87.18.24:30 218.87.18.24:30
icmp 218.87.18.21:31 192.168.1.1:31 218.87.18.24:31 218.87.18.24:31
icmp 218.87.18.21:32 192.168.1.1:32 218.87.18.24:32 218.87.18.24:32
icmp 218.87.18.21:33 192.168.1.1:33 218.87.18.24:33 218.87.18.24:33
icmp 218.87.18.21:34 192.168.1.1:34 218.87.18.24:34 218.87.18.24:34
icmp 218.87.18.21:35 192.168.1.1:35 218.87.18.24:35 218.87.18.24:35
icmp 218.87.18.21:36 192.168.1.1:36 218.87.18.24:36 218.87.18.24:36
R1#
ISP:
Router>en
Router#conf t
Router(config)#hostname ISP
ISP(config)#interface f0/1
ISP(config-if)#ip address 218.87.18.24 255.255.255.0
ISP(config-if)#no sh
ISP(config-if)#end
ISP#
验证在PC拼ISP:
PC>ping 218.87.18.24
Pinging 218.87.18.24 with 32 bytes of data:
Reply from 218.87.18.24: bytes=32 time=86ms TTL=254
Reply from 218.87.18.24: bytes=32 time=45ms TTL=254
Reply from 218.87.18.24: bytes=32 time=49ms TTL=254
Reply from 218.87.18.24: bytes=32 time=35ms TTL=254
Ping statistics for 218.87.18.24:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 35ms, Maximum = 86ms, Average = 53ms
查看NAT转换表:
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 218.87.18.23:43 192.168.1.1:43 218.87.18.24:43 218.87.18.24:43
icmp 218.87.18.23:44 192.168.1.1:44 218.87.18.24:44 218.87.18.24:44
icmp 218.87.18.23:45 192.168.1.1:45 218.87.18.24:45 218.87.18.24:45
icmp 218.87.18.23:46 192.168.1.1:46 218.87.18.24:46 218.87.18.24:46