码迷,mamicode.com
首页 > 其他好文 > 详细

交换机stp配置

时间:2017-07-12 12:14:17      阅读:160      评论:0      收藏:0      [点我收藏+]

标签: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配置

标签:stp

原文地址:http://fengxiaoli.blog.51cto.com/12104465/1946542

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!