1、配置路由器AR1
[Huawei]sysname RouterA
[RouterA]int g0/0/0.200
[RouterA-GigabitEthernet0/0/0.200]dot1q termination vid 200
[RouterA-GigabitEthernet0/0/0.200]ip address 192.168.20.1 24
[RouterA-GigabitEthernet0/0/0.200]arp broadcast enable
[RouterA-GigabitEthernet0/0/0.200]int g 0/0/0.100
[RouterA-GigabitEthernet0/0/0.100]dot1q termination vid 100
[RouterA-GigabitEthernet0/0/0.100]ip address 192.168.10.1 24
2、配置交换机
[SWA]int e0/0/1
[SWA-Ethernet0/0/1]port link-type access
[SWA-Ethernet0/0/1]port default vlan 200
[SWA-Ethernet0/0/1]int e0/0/2
[SWA-Ethernet0/0/2]port link-type access
[SWA-Ethernet0/0/2]port default vlan 100
[SWA-Ethernet0/0/2]int e0/0/3
[SWA-Ethernet0/0/3]port link-type trunk
[SWA-Ethernet0/0/3]port trunk allow-pass vlan 100 200
[SWA-Ethernet0/0/3]dis port vlan active
标签:SWA,Ethernet0,配置,GigabitEthernet0,int,RouterA,port,路由,单臂
From: https://www.cnblogs.com/xl4ng/p/16804585.html