华为
拓扑图
LSW3上的配置
先创建vlan10、20
vlan batch 10 20
然后在接口下划分trunk、access模式
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/2
port link-type access
port default vlan 20
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
interface Ethernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10 20
配置mstp
stp mode mstp
stp region-configuration
region-name liu
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
验证
dis stp instance 10 bri
LSW1上的配置
先创建vlan10、20
vlan batch 10 20
配置链路聚合和trunk口
interface Eth-Trunk1
trunkport int g0/0/1
trunkpor