h3c交换机

H3C的vlan间路由

柔情痞子 提交于 2019-11-25 23:53:38
H3C的vlan间路由 模型: 交换机的配置: [SW1]vlan 10 [SW1-vlan10]vlan 20  创建vlan 10和vlan 20 [SW1-GigabitEthernet1/0/2]port link-type access [SW1-GigabitEthernet1/0/2]port access vlan 10  端口配置到vlan 10 [SW1]int gi 1/0/3 [SW1-GigabitEthernet1/0/3]port link-type access [SW1-GigabitEthernet1/0/3]port access vlan 20  端口配置到vlan 20 接入路由的端口配置:trunk [SW1]int gi 1/0/1 [SW1-GigabitEthernet1/0/1]port link-type trunk [SW1-GigabitEthernet1/0/1]port trunk permit vlan 10 20  端口模式为trunk,配置到vlan 10和vlan 20 路由器的配置: 与交换机相接的端口需要配置子端口 [R1]int gi 0/0 [R1-GigabitEthernet0/0]undo shutdown  确认端口开启 [R1]int gi 0/0.10  进入子端口 [R1