首页 > 代码库 > 交换机stp配置

交换机stp配置

拓扑图

技术分享

配置代码

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


验证生成树协议

技术分享

技术分享

技术分享

技术分享


本文出自 “feng” 博客,请务必保留此出处http://fengxiaoli.blog.51cto.com/12104465/1946542

交换机stp配置