拓扑图如下:
R2 R1实际上都是交换机 名字和图片都是默认的。
配置信息如下:
VPC(左):IP:192.168.0.1 Gateway:192.168.0.254
VPC(右):IP:192.168.1.1 Gateway:192.168.1.254
R1: e0/0和e0/1是两个access模式端口,其中e0/0划给VLAN 10,e0/1划给VLAN 20 e0/2是trunk模式封装了802.1q。关闭了路由功能no ip routing
R2::e0/0是trunk模式端口封装了802.1q。R2上创建了VLAN 10,VLAN 20
并将ip和掩码分别设为192.168.0.254 255.255.255.0和192.168.1.254 255.255.255.0。已经开启了路由功能。
R2路由表:
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, Vlan10
L 192.168.0.254/32 is directly connected, Vlan10
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Vlan20
L 192.168.1.254/32 is directly connected, Vlan20
问题
VPC(左192.168.0.1)ping不通VPC(右192.168.1.1),但是能ping通192.168.1.254.请问这是为什么?
iol镜像使用的是L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin