admin管理员组

文章数量:1532269

2023年12月22日发(作者:)

采用Packet Tracer 4.1模拟器做以下实验:

各路由器命令如下:

Router A:

Current configuration : 616 bytes

!

version 12.2

no service password-encryption

!

hostname Router

!

!

!

!

interface FastEthernet0/0

ip address 192.168.100.1 255.255.255.0

duplex auto

speed auto

!

interface Serial0/0

ip address 192.168.102.1 255.255.255.0

!

interface Serial0/1

no ip address

!

interface FastEthernet1/0

ip address 192.168.101.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/1

ip address 192.168.103.1 255.255.255.0

duplex auto

speed auto

!

router rip

network 192.168.100.0

network 192.168.101.0

network 192.168.102.0

network 192.168.103.0

!

ip classless

!

!

!

!

line con 0

line vty 0 4

login

!

!

end

Rourte B:

Current configuration : 943 bytes

!

version 12.2

no service password-encryption

!

hostname Router

!

!

!

!

interface FastEthernet0/0

ip address 192.168.101.2 255.255.255.0

ip nat inside

duplex auto

speed auto

!

interface Serial0/0

ip address 192.168.102.2 255.255.255.0

clock rate 64000

!

interface FastEthernet1/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet1/1

ip address 192.168.104.1 255.255.255.0

duplex auto

speed auto

!

interface Serial1/0

ip address 52.2.2.2 255.255.255.252

ip nat outside

!

interface Serial1/1

no ip address

shutdown

!

router rip

network 192.168.101.0

network 192.168.102.0

network 192.168.104.0

!

ip nat inside source list 1 interface Serial1/0 overload

ip nat inside source static 192.168.101.3 200.5.22.21

ip nat inside source static 192.168.100.2 200.5.22.22

ip classless

ip route 0.0.0.0 0.0.0.0 52.2.2.1

!

access-list 1 permit 192.168.0.0 0.0.255.255

!

!

!

line con 0

line vty 0 4

login

!

!

end

ISP router:

Current configuration : 589 bytes

!

version 12.2

no service password-encryption

!

hostname Router

!

!

!

!

interface FastEthernet0/0

ip address 200.2.2.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet1/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial1/0

ip address 52.2.2.1 255.255.255.0

clock rate 64000

!

interface Serial1/1

no ip address

shutdown

!

ip classless

ip route 52.2.2.0 255.255.255.0 52.2.2.2

ip route 200.5.22.21 255.255.255.255 52.2.2.2

!

!

!

!

line con 0

line vty 0 4

login

!

!

end

问题:

PC1或PC2不能访问外网,ping 200.2.2.2(Int_host PC)时不能Ping通,显示为:

PC>ping 200.2.2.2

Pinging 200.2.2.2 with 32 bytes of data:

Reply from 192.168.100.1: Destination host unreachable.

Reply from 192.168.100.1: Destination host unreachable.

Reply from 192.168.100.1: Destination host unreachable.

Reply from 192.168.100.1: Destination host unreachable.

PC2可以ping 通192.168.101.2;

Router B的Fa0/0:192.168.101.2可以ping 通200.2.2.2(Int_host PC);

SRV001 PC(192.168.101.3)可以ping 通200.2.2.2。

PC1设置了静态地址转换(ip nat inside source static 192.168.100.2 200.5.22.22 )

也不能访问外网,显示为:Reply from 192.168.100.1: Destination host unreachable.

Test 2 PC 可以Ping通200.2.2.2(Int_host PC),能IP 地址转换,能启用overload功能,用命令debug

ip nat packet显示源地址为:52.2.2.2,目标地址为:200.2.2.2。

问题:为何PC1或PC2不能访问外网,ping 200.2.2.2(Int_host PC)时不能Ping通?

本文标签: 地址转换访问不能显示