1、H3C 单臂路由配置H3c 交换机配置system-viewH3Cvlan 10 /创建 VLAN 10H3C-vlan10port e1/0/1 /把端口 e1/0/1 划给 VLAN 10H3C-vlan10quitH3Cvlan 20 /创建 VLAN 10H3C-vlan20port e1/0/2 /把端口 e1/0/1 划给 VLAN 10H3Cint e1/0/3H3C-Ethernet1/0/3port link-type trunk /设置 e1/0/3 端口为 Trunk 口H3C-Ethernet1/0/3port trunk permit vlan all /允许所有 V
2、LAN 通过路由器配置system-viewH3Cint g0/0.1 /进入 g0/0 子接口 1H3C-GigabitEthernet0/0.1ip address 192.168.10.1 255.255.255.0 /配置子接口 IP 地址H3C-GigabitEthernet0/0.1vlan-type dot1q vid 10 /子接口封装为 dot1q 协议并分配给 VLAN 10H3C-GigabitEthernet0/0.1quitH3Cint g0/0.2H3C-GigabitEthernet0/0.2vlan-type dot1q vid 20H3C-GigabitEthernet0/0.2ip address 192.168.20.1 255.255.255.0