ping 显示不同的输出

网络工程 思科 路由 转变 路由器 思科命令
2022-03-04 12:29:27

两个 VLAN 都在工作,从 R1 到 R0 的 ping 以及反之亦然也能成功工作。但是,当我从粉色 PC ping 到蓝色 PC 时,我无法到达目的地,当我从蓝色 PC 向粉色 PC 发送 ping 时,我得到请求超时。错误在哪里?

SW0 配置:

    SW0#show running-config 
Building configuration...

Current configuration : 1129 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW0
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 ip address 191.120.128.2 255.255.255.128
!
ip default-gateway 191.120.128.1
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end

反渗透配置:

R0#show running-config 
Building configuration...

Current configuration : 587 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R0
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 191.120.128.1 255.255.255.128
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 191.120.128.193 255.255.255.252
 duplex auto
 speed auto
!
ip classless
ip route 191.120.128.0 255.255.255.128 191.120.128.194 
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

R1配置:

R1#show running-config 
Building configuration...

Current configuration : 634 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 191.120.128.194 255.255.255.252
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 191.120.128.129 255.255.255.192
 duplex auto
 speed auto
!
ip classless
ip route 191.120.128.0 255.255.255.128 191.120.128.193 
ip route 191.120.128.128 255.255.255.192 191.120.128.193 
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

SW1 配置:

SW1#show running-config 
Building configuration...

Current configuration : 1133 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW1
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 ip address 191.120.128.130 255.255.255.192
!
ip default-gateway 191.120.128.129
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end
1个回答

R0 缺少到子网 C 191.120.120.128/26 的路由。

ping 从粉红色到蓝色,R0 将 ICMP 错误返回给回显请求发送者,提示消息。在另一个方向上 Ping,R0 将 ICMP 错误返回给没有用户进程需要通知的回显回复发送方。

请注意,您使用的地址不是私有地址,因此您在将该网络连接到 Internet 时会遇到问题。查看 RFC 1918 以了解供私人使用的地址范围(192.168.0.0/16、172.16.0.0/12、10.0.0.0/8)。