设为首页 收藏本站
查看: 1210|回复: 0

[经验分享] 思科交换机MST配置命令步骤-实例讲解

[复制链接]
累计签到:8 天
连续签到:1 天
发表于 2015-11-4 15:20:18 | 显示全部楼层 |阅读模式
   配置MST的基本参数
  启用MST的过程需要多不操作,它需要将一定的范围的VLAN映射到单个MSTI。
因为MST适用于多个VLAN的情况,所以它就比PVST+或RPVST+要求更多的其他配置。当用户通过命令:spanning-tree mode mst启用MST之后,就可以利用其他配置命令配置区域和实例:
步骤1 进入MST配置子模式来配置MST:
spanning-tree mst configuration
步骤2 配置MST区域名称
name name
步骤3 配置MST配置版本号
revision revision_number
配置版本号是16比特号整数。当提交新的MST配置的时候,配置版本号不会自动递增。
步骤4 将VLAN映射到MSTI
instance instance_number vlan vlan_range
当灭有指定vlan关键字的时候。通过使用no关键字,将可以从MSTI的映射中取消所有VLAN映射。当指定lan关键字的时候,通过使用no关键字,将可以从MSTI的映射取消特定VLAN映射
步骤 5 保存退出,退出MST配置模式
end
  
如何说明用户将生成树模式更改为MST,并且通过将一定范围的VLAN映射到实例1来配置MST区域
在基于Cisco IOS软件的Catalyst接交换机上配置MST和将VLAN映射到实例的输出结果
用命令:switch#configure terminal
switch(config)#spanning-tree mode mst
switch(config)#spanning-tree mst configration
switch(config-mst)#show current
Current MST configuration
Name      []
Revision 0
Instance Vlans mapped
-------- ---------------------------------------------------------------------
0         1-4094
-------------------------------------------------------------------------------
  switch(config-mst)#name cisco
switch(config-mst)#revision 1
switch(config-mst)#instance 1 vlan 1-10
switch(config-mst)#show pending
Pending MST configuration
Name      [cisco]
Revision 1
Instance Vlans mapped
-------- ---------------------------------------------------------------------
0         11-4094
1         1-10
-------------------------------------------------------------------------------
  switch(config-mst)#end
在上例中,show current命令将可以显示交换机上MST的当前配置。show pending将能够详细地显示未提交的MST配置。如果管理员通过使用abort命令来放弃所做的配置变更,那么Catalyst交换机就将忽略未决的 配置。此外,当发出end命令的时候,Catalyst交换机将保存MST配置,如上例所示。
  举例说明用户如何在基于CIsco IOS软件的Catalyst交换机上显示MST配置。
在基于Cisco IOS软件的Catalyst交换机上显示MST配置
switch#show spanning-tree mst configuration
Name      [cisco]
Revision 1
Instance Vlans mapped
-------- ---------------------------------------------------------------------
0         11-4094
1         1-10
-------------------------------------------------------------------------------
  
在基于Cisco IOS软件的Catalyst交换机显示MST协议信息
switch#show spanning-tree mst
###### MST00        vlans mapped:   11-4094
Bridge      address 001a.e3b6.7100 priority 32768 (32768 sysid 0)
Root        address 0019.0632.d800 priority 32768 (32768 sysid 0)
            port    Fa0/1           path cost 200000   
IST master this switch
Operational hello time 2, forward delay 15, max age 20
Configured hello time 2, forward delay 15, max age 20, max hops 20
  Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Root FWD 200000    128.3    P2p Bound(RSTP)
Fa0/2            Altn BLK 200000    128.4    P2p Bound(RSTP)
Fa0/3            Altn BLK 200000    128.5    P2p Bound(RSTP)
  ###### MST01        vlans mapped:   1-10
Bridge      address 001a.e3b6.7100 priority 32769 (32768 sysid 1)
Root        this switch for MST01
  Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Boun FWD 200000    128.3    P2p Bound(RSTP)
Fa0/2            Boun BLK 200000    128.4    P2p Bound(RSTP)
Fa0/3            Boun BLK 200000    128.5    P2p Bound(RSTP)
  显示MST协议实例信息
switch#show spanning-tree mst 1
  ###### MST01        vlans mapped:   1-10
Bridge      address 001a.e3b6.7100 priority 32769 (32768 sysid 1)
Root        this switch for MST01
  Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Boun FWD 200000    128.3    P2p Bound(RSTP)
Fa0/2            Boun BLK 200000    128.4    P2p Bound(RSTP)
Fa0/3            Boun BLK 200000    128.5    P2p Bound(RSTP)
  
举例说明用户如何显示特定接口的MST协议信息
显示特定接口的MST协议信息
switch#show spanning-tree mst interface FastEthernet 0/2
  FastEthernet0/2 of MST00 is alternate blocking
Edge port: no             (default)        port guard : none        (default)
Link type: point-to-point (auto)           bpdu filter: enable      (internal)
Boundary : boundary       (auto)           bpdu guard : disable     (default)
Bpdus sent 3, received 60
  Instance Role Sts Cost      Prio.Nbr Vlans mapped
-------- ---- --- --------- -------- -------------------------------
0        Altn BLK 200000    128.4    11-4094
1        Boun BLK 200000    128.4    1-10
  举例说明用户如何显示特定实例的详细信息
显示MSTI的详细信息
switch#show spanning-tree mst 1 detail
###### MST01        vlans mapped:   1-10
Bridge      address 001a.e3b6.7100 priority 32769 (32768 sysid 1)
Root        this switch for MST01
  FastEthernet0/1 of MST01 is boundary forwarding
Port info             port id          128.3 priority    128 cost      200000
Designated root       address 001a.e3b6.7100 priority 32769 cost           0
Designated bridge     address 001a.e3b6.7100 priority 32769 port id    128.3
Timers: message expires in 0 sec, forward delay 0, forward transitions 1
Bpdus (MRecords) sent 74, received 0
  FastEthernet0/2 of MST01 is boundary blocking
Port info             port id          128.4 priority    128 cost      200000
Designated root       address 001a.e3b6.7100 priority 32769 cost           0
Designated bridge     address 001a.e3b6.7100 priority 32769 port id    128.4
Timers: message expires in 0 sec, forward delay 0, forward transitions 0
Bpdus (MRecords) sent 3, received 0
  FastEthernet0/3 of MST01 is boundary blocking
Port info             port id          128.5 priority    128 cost      200000
Designated root       address 001a.e3b6.7100 priority 32769 cost           0
Designated bridge     address 001a.e3b6.7100 priority 32769 port id    128.5
Timers: message expires in 0 sec, forward delay 0, forward transitions 0
Bpdus (MRecords) sent 3, received 0
  配置命令
  show spanning-tree    显示交换机上所配置全部VLAN的STP信息
show spanning-tree active   显示有激活接口的全部VLAN的STP信息
show spanning-tree interface interface-id 显示指定接口的STP信息
show spanning-tree statistics mod/port vlan_Id 在运行Cisco CatOS软件的Catalyst交换机中,      显示特定接口和特定VLAN的STP信息
show spanning-tree summary   显示交换机上所配置每个VLAN的STP汇总信息
show spanning-tree summary totals 显示交换机上所配置全部VLAN的STP汇总信息
show spanning-tree detail   显示交换机上所配置全部VLAN的STP详细信息
show spanning-tree vlan vlan_id bridge 显示特定VLAN的STP网桥信息
show spanning-tree root    显示交换机上所配置全部VLAN的STP根信息
show spanning-tree vlan vlan-id   显示特定VLAN的STP信息
(config-if)#show spanning-tree cost port_cost 配置接口的生成树开销值
(config)#show spanning-tree vlan vlan_id root primary 通过将交换机的优先级自动降低到        低于当前根的优先级,将交换机配置为特定        VLAN的根
(config)#show spanning-tree vlan vlan_id priority value 配置特定VLAN的网桥优先级
  本文来自: 高校自动化网(Www.zdh1909.com) 详细出处参考(转载请保留本链接):http://www.zdh1909.com/html/Cisco/15532.html

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-135077-1-1.html 上篇帖子: 思科预计移动连接设备的数量将在2013年底超出范围 下篇帖子: 思科3500系列交换机的基本配置命令
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表