MSTP 802.1s 公有協議
集stp,rstp,pvst,rpaid pvst 所有高級特性於一身的公有協議,使用於所有廠家
(HUAWEI默認就是MST)
多實例生成樹,
實例:就是將多個vlan ,划到一個實例中,然后對這個實例進行配置優先級,整體來講更加的省事兒。
如果說現網中的VLAN數量很多,使用PVST、rapid pvst的話,配置工作量很大,MST也是為了解決這一問題
配置就那么幾步
1 改變STP的模式為mst
2 進入mst的配置模式
3 定義域名
4 創建實例,把vlan 划到實例中
5 在核心/匯聚層針對實例做優先級設置
6 最主要的不要忘了,針對於實例的配置,所有運行MSTP協議的交換機都要人手一份
1 sw(config)#spanning-tree mode mst
2 sw(config)#spanning-tree mst configuration
3sw(config)#name wfy
4 sw(config-mst)#instance 1 vlan 10
Sw(config-mst)#instance 2 vlan 20
5 coresw(config)#spanning-tree mst 1 priority 0
1-4步,所有運行MSTP的交換機都要進行配置,而且是一樣的
實例:就是將多個vlan ,划到一個實例中,然后對這個實例進行配置優先級,整體來講更加的省事兒。

配置就那么幾步
1 改變STP的模式為mst
2 進入mst的配置模式
3 定義域名
4 創建實例,把vlan 划到實例中
5 在核心/匯聚層針對實例做優先級設置
6 最主要的不要忘了,針對於實例的配置,所有運行MSTP協議的交換機都要人手一份
1 sw(config)#spanning-tree mode mst
2 sw(config)#spanning-tree mst configuration
3sw(config)#name wfy
4 sw(config-mst)#instance 1 vlan 10
Sw(config-mst)#instance 2 vlan 20
5 coresw(config)#spanning-tree mst 1 priority 0
1-4步,所有運行MSTP的交換機都要進行配置,而且是一樣的
配置部份
SW1
Switch(config)#hos CORESW1
CORESW1(config)#inter range g0/0 - 2
CORESW1(config-if-range)#sw tr en dot
CORESW1(config-if-range)#sw m t
CORESW1(config-if-range)#exit
CORESW1(config)#vlan 2-7
CORESW1(config-vlan)#exit
CORESW1(config)#spanning-tree mode mst //修改STP模式為MSTP
CORESW1(config)#spanning-tree mst configuration //進入配置模式
CORESW1(config-mst)#name wfy.com //定義名字,隨便
CORESW1(config-mst)#instance 1 vlan 2,4,6 //創建實例並將VLAN划到實例中
CORESW1(config-mst)#instance 2 vlan 3,5,7
CORESW1(config-mst)#show pending //在配置模式下可以查看具體的實例
Pending MST configuration
Name [wfy.com]
Revision 0 Instances configured 3
Instance Vlans mapped
-------- ---------------------------------------------------------------------
0 1,8-4094
1 2,4,6
2 3,5,7
-------------------------------------------------------------------------------
CORESW1(config-mst)#exit
CORESW1(config)#spanning-tree mst 1 pri 0 //針對於實例做優先級設置,SW1為MST1的root
CORESW1(config)#spanning-tree mst 2 pri 4096 //SW1為MST2的備份根
SW2
Switch(config)#inter range g0/0 - 2
Switch(config-if-range)#sw tr en dot
Switch(config-if-range)#sw m t
Switch(config-if-range)#vlan 2-7
Switch(config)#spanning-tree mode mst
Switch(config)#spanning-tree mst configuration
Switch(config-mst)#name wfy.com
Switch(config-mst)#instance 1 vlan 2,4,6
Switch(config-mst)#instance 2 vlan 3,5,7
Switch(config-mst)#exit
Switch(config)#spanning-tree mst 1 pri 4096
Switch(config)#spanning-tree mst 2 pri 0
SW3\SW4
Switch(config)#inter range e0/0 - 1
Switch(config-if-range)#sw tr en dot
Switch(config-if-range)#sw m t
Switch(config-if-range)#vlan 2-7
Switch(config-vlan)#exit
Switch(config)#spanning-tree mode mst
Switch(config)#spanning-tree mst con
Switch(config-mst)#nam wfy.com
Switch(config-mst)#instance 1 vlan 2,4,6
Switch(config-mst)#instance 2 vlan 3,5,7
Switch(config-mst)#end
查看配置

在SW3上查看MST1的生成樹狀態,完全沒有問題

同樣的,在SW4上查看,完全no problem
----------------------------------------------------
CCIE成長之路------梅利
