交换机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


验证生成树协议

交换机stp配置

交换机stp配置

交换机stp配置

交换机stp配置



本文转自 fxl风 51CTO博客,原文链接:http://blog.51cto.com/fengxiaoli/1946542

上一篇:PostgreSQL 快速靠谱的跨大版本升级


下一篇:Android自定义字体样式Typeface的三种技术方案:Java代码的setTypeface和xml的fontFamily配置方式