Kyon 发表于 2013-8-5 19:02:32

配置MST的根交换机

配置过程:
1) 进入全局模式configure terminal
2) 配置MST根交换机
    spanning-tree mst 实例号 root primary
案例:
switch(config)#spanning-tree mst 1 root primary
Switch#show span mst 1###### MST01      vlans mapped:   20-30
Bridge      address 000d.6564.0280priority24577 (24576 sysid 1)
Root      this switch for MST01Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Boun FWD 200000    128.23   P2p Bound(PVST)
Fa0/24         Boun FWD 200000    128.24   P2p Bound(PVST)交换机优先级
配置过程:
1) 进入全局模式configure terminal
2) 修改交换机的优先级
   spanning-tree mst 1 priority 优先级
   优先级:取值为0-61440,优先级为4096的倍数
案例:
Switch(config)#spanning-tree mst 1 priority 36864
Switch#show spanning-tree mst 1###### MST01      vlans mapped:   20-30
Bridge      address 000d.6564.0280priority36865 (36864 sysid 1)
Root      this switch for MST01Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Boun FWD 200000    128.23   P2p Bound(PVST)
Fa0/24         Boun FWD 200000    128.24   P2p Bound(PVST)
配置MST的开销
1) 进入全局模式configure terminal
2) 进入接口模式interface 接口
3) 配置端口的MST开销
    spanning-tree mst 实例号 cost 成本
案例:
sw2(config)#show span mst 1
###### MST01      vlans mapped:   20-30
Bridge      address 000b.5f2c.2080priority32769 (32768 sysid 1)
Root      this switch for MST01Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Desg FWD 200000    128.23   P2p
Fa0/24         Desg FWD 200000    128.24   P2pSw2(config)#interface f0/23
sw2(config-if)#span mst 1 cost 20000
sw2(config-if)#do show span mst 1###### MST01      vlans mapped:   20-30
Bridge      address 000b.5f2c.2080priority32769 (32768 sysid 1)
Root      this switch for MST01Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Desg FWD 200000    128.23   P2p
Fa0/24         Desg FWD 20000   128.24   P2p
端口优先级
配置过程:
1) 进入全局模式configure terminal
2) 进入接口模式interface 接口
3) 配置端口的优先级
    spanning-tree mst 实例号 port-priority 优先级
   优先级默认为128
案例:
sw2(config)#interface f0/24
sw2(config-if)#spann mst 1 port-priority 64
sw2(config-if)#end
sw2#show spanning mst 1###### MST01      vlans mapped:   20-30
Bridge      address 000b.5f2c.2080priority32769 (32768 sysid 1)
Root      this switch for MST01Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Desg FWD 200000    128.23   P2p
Fa0/24         Desg FWD 20000      64.24   P2p修改时间器
sw2(config)#spann mst hello-time ?
<1-10>number of seconds between generation of config BPDUssw2(config)#span mst forward-time ?
<4-30>number of seconds for the forward delay timersw2(config)#span mst max-age ?
<6-40>maximum number of seconds the information in a BPDU is validsw2#show span mst###### MST00      vlans mapped:   1-19,31-4094
Bridge      address 000b.5f2c.2080priority32768 (32768 sysid 0)
Root      this switch for CST and IST
Configuredhello time 1, forward delay 15, max age 20, max hops 20Interface      Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Fa0/23         Desg FWD 200000    128.23   P2p
Fa0/24         Desg FWD 200000    128.24   P2p案例:
CCIE-LAB(V160)
题目要求:
在SW1、SW2、SW3上配置MST,要求偶数VLAN加入实例1,奇数VLAN加入实例2
配置:
SW1
   config terminal
   spanning-tree mode mst
   spanning-tree mst configuration
      instance 1 vlan 20,40,60
      instance 2 vlan 30,50,70
      name cisco
      revision 1
sw2
   config terminal
   spanning-tree mode mst
   spanning-tree mst configuration
   instance 1 vlan 20,40,60
   instance 2 vlan 30,50,70
   name cisco
   revision 1
SW3
   config terminal
   spanning-tree mode mst
   spanning-tree mst configuration
      instance 1 vlan 20,40,60
   instance 2 vlan 30,50,70
   name cisco
   revision 1

页: [1]
查看完整版本: 配置MST的根交换机