拓扑图
配置代码
SW1---------------------------------------------------
1.配置代码
sys
vlan 2
vlan 3
quit
interface eth-trunk 1
quit
interface g0/0/1
eth-trunk 1
quit
interface g0/0/2
eth-trunk 1
quit
interface eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/4
port link-type trunk
port trunk allow-pass vlan all
quit
stp region-configuration
region-name fxl
revision-level 1
instance 1 vlan 2
instance 2 vlan 3
active region-configuration
quit
stp instance 1 priority 4096
SW2---------------------------------------------------
sys
vlan 2
vlan 3
quit
interface eth-trunk 1
quit
interface g0/0/1
eth-trunk 1
quit
interface g0/0/2
eth-trunk 1
quit
interface eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/4
port link-type trunk
port trunk allow-pass vlan all
quit
stp region-configuration
region-name fxl
revision-level 1
instance 1 vlan 2
instance 2 vlan 3
active region-configuration
quit
stp instance 2 priority 4096
SW3---------------------------------------------------
sys
vlan 2
vlan 3
quit
interface e0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
interface e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
stp region-configuration
region-name fxl
revision-level 1
instance 1 vlan 2
instance 2 vlan 3
active region-configuration
quit
SW4---------------------------------------------------
sys
vlan 2
vlan 3
quit
interface e0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
interface e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
stp region-configuration
region-name fxl
revision-level 1
instance 1 vlan 2
instance 2 vlan 3
active region-configuration
quit
验证生成树协议