思科交换机MST配置命令步骤-实例讲解

 配置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

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 可以回答这个问题。MSTP是一种多实例的生成树协议,可以通过配置实例来实现不同的VLAN之间的隔离和冗余。在思科交换机上,可以通过以下命令进行MSTP配置: 1. 配置MSTP实例: switch(config)# spanning-tree mst configuration 2. 配置MSTP实例的VLAN范围: switch(config-mst)# instance 1 vlan 1-10 3. 配置MSTP实例的根桥: switch(config-mst)# instance 1 root primary 4. 配置MSTP实例的优先级: switch(config-mst)# instance 1 priority 4096 5. 配置MSTP实例的端口优先级: switch(config)# interface gigabitethernet 1//1 switch(config-if)# spanning-tree mst 1 port-priority 32 以上是思科交换机配置MSTP的基本步骤,具体配置还需要根据实际情况进行调整。 ### 回答2: 思科交换机配置MSTP (Multiple Spanning Tree Protocol) 的步骤如下: 1. 进入交换机的命令行界面。可以通过串口或者远程连接方式进入交换机的命令行界面。 2. 进入全局配置模式。在命令行界面中输入 "configure terminal" 命令,进入全局配置模式。 3. 配置MSTP实例。在全局配置模式下,通过 "spanning-tree mst configuration" 命令进入MSTP实例配置模式。 4. 配置MSTP实例实例ID和实例名称。在MSTP实例配置模式下,通过 "instance [实例ID] vlan [VLAN范围]" 命令配置MSTP实例实例ID和实例名称。 5. 配置MSTP实例的根桥。在MSTP实例配置模式下,通过 "root [根桥优先级]" 命令配置MSTP实例的根桥。根桥的优先级决定了它在MSTP中的角色和权威性。 6. 配置MSTP实例的桥优先级。在MSTP实例配置模式下,通过 "bridge [桥优先级]" 命令配置MSTP实例的桥优先级。桥优先级决定了交换机在MSTP实例中的优先级。 7. 配置MSTP实例的接口。在MSTP实例配置模式下,通过 "interface [接口名称]" 命令进入接口配置模式,并且通过 "spanning-tree mst 0" 命令将该接口加入到MSTP实例中。 8. 保存配置。在全局配置模式下,通过 "exit" 命令返回到命令行界面,然后通过 "copy running-config startup-config" 命令保存配置。 以上是思科交换机配置MSTP的基本步骤。具体配置过程中,可以根据实际需求进行调整和修改。 ### 回答3: 思科交换机配置MSTP的过程如下: 1. 连接到交换机。使用串口、Telnet或SSH等方法连接到思科交换机的控制台或远程终端。 2. 进入全局配置模式。使用命令"enable"进入特权模式,然后使用命令"configure terminal"进入全局配置模式。 3. 配置MSTP实例。使用命令"spanning-tree mst configuration"配置MSTP实例的参数,包括实例ID、区域名称等。例如,命令"spanning-tree mst configuration 1 name ExampleMSTP"配置实例ID为1,区域名称为ExampleMSTP。 4. 配置MSTP边界端口。使用命令"spanning-tree mst instance 1 boundary port-type trunk"配置实例ID为1的MSTP边界端口类型为trunk。可以根据需要调整其他端口和实例配置。 5. 配置MSTP根桥。使用命令"spanning-tree mst instance 1 root primary"配置实例ID为1的MSTP根桥为主根桥。可以使用其他命令配置备用根桥和优先级。 6. 配置端口优先级。使用命令"spanning-tree mst instance 1 port-priority 16"配置实例ID为1的MSTP端口优先级为16。可以使用其他命令配置其他端口的优先级。 7. 验证配置。使用命令"show spanning-tree mst"查看MSTP的状态和配置信息,确保配置正确生效。 8. 保存配置。使用命令"write memory"将配置保存到闪存中,以便在交换机重新启动后保持配置的持久性。 以上是配置思科交换机MSTP的基本步骤,可以根据具体网络环境和需求进行适当的调整和修改。配置完成后,交换机会根据MSTP协议进行树计算和端口状态转换,以实现更好的网络冗余和负载均衡。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值