首页 > 其他 > 详细

STP(六)

时间:2014-03-14 22:41:46      阅读:604      评论:0      收藏:0      [点我收藏+]

这一篇主要讲MSTP的配置,至于PVST+以及RPVST+,配置都比较简单,这里就不介绍了

配置MSTP:


启用MST:Sw1(config)#spanning-tree mode mst

进入到mst配置模式:sw1(config)#spanning-tree mst configuration

设置mst的region name和revision号:

sw1(config-mst)#name ccie

sw1(config-mst)#revision 1

映射VLAN:

sw1(config-mst)#instance 1 vlan 10,20

sw1(config-mst)#instance 2 vlan 30,40

默认情况下,所有的VLAN都映射到instance 0.

注:其它交换机配置和SW1配置完全相同,必须region name和revision number完全相同,否则属于不同的region。

配置交换机作为实例的根交换机:

sw1(config)#spanning-tree mst 1 root primary

至于pathcost、port-priority等都要在接口模式下配置:

Switch1(config-if)#spanning-tree mst 1 ?

 cost           Change the interface spanning tree path cost for an instance

 port-priority  Change the spanning tree port priority for an instance


Switch1(config-if)#




本文出自 “HeZhang” 博客,请务必保留此出处http://hezhang.blog.51cto.com/1347601/1376566

STP(六),布布扣,bubuko.com

STP(六)

原文:http://hezhang.blog.51cto.com/1347601/1376566

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!