我在配置 HPE 5820X 上的 L3 路由时遇到了一些问题。这是我使用的第一台 HPE 交换机,希望得到一些有关如何使其正常工作的命令的提示。到目前为止,我已经配置了所有 VLAN 并为每个 VLAN 创建了 VLAN 接口。但是,如果我将端口分配给 VLAN 并将设备连接到它,我可以看到它正在创建仅作为 L2 的静态路由。我究竟如何才能让它在 VLAN 之间路由?
当前配置
vlan 1
#
vlan 10
description Server Network
#
vlan 20
description User Network
#
vlan 30
description Guest Network
#
vlan 50
description Camera Network
#
vlan 70
description Misc Network
#
vlan 100
description Switch Network
#
vlan 110
description Management Network
#
vlan 200
description vMotion Network
#
interface NULL0
#
interface Vlan-interface10
ip address 10.64.10.1 255.255.255.0
#
interface Vlan-interface20
ip address 10.64.20.1 255.255.255.0
#
interface Vlan-interface30
---- More ----
ip address 10.64.30.1 255.255.255.0
#
interface Vlan-interface50
ip address 10.64.50.1 255.255.255.0
#
interface Vlan-interface70
ip address 10.64.70.1 255.255.255.0
#
interface Vlan-interface100
ip address 10.64.100.2 255.255.255.0
#
interface Vlan-interface110
ip address 10.64.110.1 255.255.255.0
#
interface Vlan-interface200
ip address 10.64.200.1 255.255.255.0
#
interface GigabitEthernet1/0/25
port link-mode bridge
port access vlan 100
#
interface GigabitEthernet1/0/26
port link-mode bridge
port access vlan 20
航线
display ip routing-table
Routing Tables: Public
Destinations : 4 Routes : 4
Destination/Mask Proto Pre Cost NextHop Interface
10.64.20.0/24 Direct 0 0 10.64.20.1 Vlan20
10.64.20.1/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
答案1
已修复。看起来,所需的只是将设备插入属于相应 VLAN 的端口,以便交换机联机该 VLAN 和虚拟接口。