中心路由器中的Vlan10和Vlan20是否是两个虚拟路由器接口?

网络工程 思科 路由 路由器 VLAN
2021-07-07 22:18:49

我的 Cisco Packet Tracer 中有一个 ISP 4321 路由器。NIM-ES2-4在路由器中添加了一个模块,它提供了四个交换端口。现在,我为它们的两个交换机端口配置了两个 VLAN。现在它创建了两个 VLAN,您可以在下面看到,有Vlan10Vlan11

Router#show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0/0   unassigned      YES unset  administratively down down 
GigabitEthernet0/0/1   unassigned      YES unset  administratively down down 
GigabitEthernet0/1/0   unassigned      YES unset  up                    up 
GigabitEthernet0/1/1   unassigned      YES unset  up                    up 
GigabitEthernet0/1/2   unassigned      YES unset  up                    down 
GigabitEthernet0/1/3   unassigned      YES unset  up                    down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.10.10.1      YES manual up                    up 
Vlan11                 10.10.20.1      YES manual up                    up

我想知道Vlan10和Vlan11是不是两个虚拟Router端口?


如果 Vlan10 和 VLan11 是两个虚拟 Router 端口。我已经在上面配置了IP地址,你可以查看上面的数据。我分配了Vlan10to GigabitEthernet0/1/0Vlan11to GigabitEthernet0/1/1,都是access模式。

enter image description here

但现在我无法从10.10.10.2ping 10.10.20.1

Router>ping 10.10.20.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.20.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

中心路由器(Router11)的路由如下:

Router#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       10.10.10.0/24 is directly connected, Vlan10
L       10.10.10.1/32 is directly connected, Vlan10
C       10.10.20.0/24 is directly connected, Vlan11
L       10.10.20.1/32 is directly connected, Vlan11

所以我的问题是:

  1. 中心路由器中的Vlan10和Vlan20是否是两个虚拟路由器接口?
  2. 为什么Router 10 ping不通Router11?
1个回答
  1. 是的,这些也称为交换机虚拟接口SVI
  2. 因为你的 Router10 不知道怎么去 10.10.20.0/24 网络。将路由添加到 Router10 配置:

#(conf-t) ip route 10.10.20.0 255.255.255.0 10.10.10.1