H3C单臂路由配置H3c交换机配置H3Csystem-view[H3C]vlan10//创建VLAN10[H3C-vlan10]porte1/0/1//把端口e1/0/1划给VLAN10[H3C-vlan10]quit[H3C]vlan20//创建VLAN10[H3C-vlan20]porte1/0/2//把端口e1/0/1划给VLAN10[H3C]inte1/0/3[H3C-Ethernet1/0/3]portlink-typetrunk//设置e1/0/3端口为Trunk口[H3C-Ethernet1/0/3]porttrunkpermitvlanall//允许所有VLAN通过路由器配置H3Csystem-view[H3C]intg0/0.1//进入g0/0子接口1[H3C-GigabitEthernet0/0.1]ipaddress192.168.10.1255.255.255.0//配置子接口IP地址[H3C-GigabitEthernet0/0.1]vlan-typedot1qvid10//子接口封装为dot1q协议并分配给VLAN10[H3C-GigabitEthernet0/0.1]quit[H3C]intg0/0.2[H3C-GigabitEthernet0/0.2]vlan-typedot1qvid20[H3C-GigabitEthernet0/0.2]ipaddress192.168.20.1255.255.255.0