华为mstp多生成树配置_【交换机】交换机如何配置MSTP(多实例生成树协议)
一、組網(wǎng)需求
內(nèi)網(wǎng)有4個(gè)vlan,vlan10和20的生成樹(shù)根橋在核心交換機(jī)A上,vlan30,40的vlan根橋在核心交換機(jī)B上。
二、組網(wǎng)拓?fù)?#xff1a;
三、配置要點(diǎn):
開(kāi)啟生成樹(shù)功能
創(chuàng)建不同的實(shí)例
為實(shí)例配置優(yōu)先級(jí)
四、配置步驟:
注意:配置之前建議使用 Ruijie#show interface status查看接口名稱,常用接口名稱有FastEthernet(百兆)、GigabitEthernet(千兆)和TenGigabitEthernet(萬(wàn)兆),以下配置以百兆接口為例。
核心交換機(jī)A配置:
Ruijie>enable?????????????????? ------>進(jìn)入特權(quán)模式
Ruijie#configure terminal??????? ------>進(jìn)入全局配置模式
Ruijie(config)#vlan 10??? ------>創(chuàng)建vlan 10 、20、30和40
Ruijie(config-vlan)#vlan 20
Ruijie(config-vlan)#vlan 30
Ruijie(config-vlan)#vlan 40
Ruijie(config-vlan)#exit
Ruijie(config)#spanning-tree? ?------>開(kāi)啟生成樹(shù),默認(rèn)模式是 mst
Ruijie(config)#spanning-tree mst configuration??? ------>配置mst
Ruijie(config-mst)# instance 1 vlan 10, 20??????????? ------>vlan 10和20 使用實(shí)例(instance)1
Ruijie(config-mst)# instance 2 vlan 30, 40??????????? ------>vlan 30和40使用實(shí)例2
Ruijie(config-mst)#spanning-tree mst 1 priority 4096?? ------>實(shí)例1 的優(yōu)先級(jí)為4096,越小越優(yōu)先,默認(rèn)優(yōu)先級(jí)是32768
Ruijie(config-mst)#exit
Ruijie(config)#interface FastEthernet 0/1
Ruijie(config-if-FastEthernet 0/1)#switch mode trunk------>把交換機(jī)的第一個(gè)百兆接口配置成trunk
Ruijie(config)#interface FastEthernet 0/2
Ruijie(config-if-FastEthernet 0/2)#switch mode trunk------>把交換機(jī)的第二個(gè)百兆接口配置成trunk
核心交換機(jī)B配置:
Ruijie>enable?????????????????? ------>進(jìn)入特權(quán)模式
Ruijie#configure terminal??????? ------>進(jìn)入全局配置模式
Ruijie(config)#vlan 10??? ------>創(chuàng)建vlan 10 、20、30和40
Ruijie(config-vlan)#vlan 20
Ruijie(config-vlan)#vlan 30
Ruijie(config-vlan)#vlan 40
Ruijie(config-vlan)#exit
Ruijie(config)#spanning-tree
Ruijie(config)#spanning-tree mst configuration
Ruijie(config-mst)# instance 1 vlan 10, 20
Ruijie(config-mst)# instance 2 vlan 30, 40
Ruijie(config-mst)#spanning-tree mst 2 priority 4096
Ruijie(configmst)#exit
Ruijie(config)#interface FastEthernet 0/1
Ruijie(config-if-FastEthernet 0/1)#switch mode trunk------>把交換機(jī)的第一個(gè)百兆接口配置成trunk
Ruijie(config)#interface FastEthernet 0/2
Ruijie(config-if-FastEthernet 0/2)#switch mode trunk------>把交換機(jī)的第二個(gè)百兆接口配置成trunk
接入交換機(jī)配置:
Ruijie>enable?????????????????? ------>進(jìn)入特權(quán)模式
Ruijie#configure terminal??????? ------>進(jìn)入全局配置模式
Ruijie(config)#vlan 10??? ------>創(chuàng)建vlan 10 、20、30和40
Ruijie(config-vlan)#vlan 20
Ruijie(config-vlan)#vlan 30
Ruijie(config-vlan)#vlan 40
Ruijie(config-vlan)#exit
Ruijie(config)#spanning-tree
Ruijie(config)#spanning-tree mst configuration
Ruijie(config-mst)# instance 1 vlan 10, 20
Ruijie(config-mst)# instance 2 vlan 30, 40
Ruijie(config-mst)#exit
Ruijie(config)#interface FastEthernet 0/1
Ruijie(config-if-FastEthernet 0/1)#switch mode trunk------>把交換機(jī)的第一個(gè)百兆接口配置成trunk
Ruijie(config)#interface FastEthernet 0/2
Ruijie(config-if-FastEthernet 0/2)#switch mode trunk------>把交換機(jī)的第二個(gè)百兆接口配置成trunk
保存配置
Ruijie(config)#end????????????? ??------>退出到特權(quán)模式
Ruijie#write??????????????? ???------>確認(rèn)配置正確,保存配置
五、配置驗(yàn)證:
Ruijie#show spanning-tree summary
Spanning tree enabled protocol mstp
MST 0 vlans map : 1-9, 11-19, 21-29, 31-39, 41-4094???? ------>哪些vlan使用實(shí)例0,實(shí)例0是默認(rèn)實(shí)例,沒(méi)有配置的vlan都屬于該實(shí)例
Root ID??? Priority??? 32768???????????????????????????? ------>根id優(yōu)先級(jí)
Address???? 001a.a976.9d0a??????????????? ------>mac地址
this bridge is root???????????????????????? ------>這臺(tái)設(shè)備是根橋(root)
Hello Time?? 2 sec? Forward Delay 15 sec? Max Age 20 sec ------>保活時(shí)間2s,轉(zhuǎn)發(fā)延時(shí)15s,超時(shí)時(shí)間 20s
Bridge ID? Priority??? 32768???????????????????????????????????????? ------>橋id優(yōu)先級(jí)
Address???? 001a.a979.bc44
Hello Time?? 2 sec? Forward Delay 15 sec? Max Age 20 sec
Interface??????? Role?????????? Sts????????? Cost??????? Prio????????????? Type???? OperEdge
---------------- ----????????????? ---?????? ----------?? --------???????????? -----????? ---------------
Fa0/24?????????? Root????????? FWD?????? 200000???? 128?????????????? P2p????????? False
Fa0/10??????????? Altn?????????? BLK??????? 200000????? 128????????????? P2p?????????? False
接口????????????? 接口屬性???? 接口狀態(tài)? 開(kāi)銷值????? 端口優(yōu)先級(jí)???? 端口類型??? 是否為邊緣端口
MST 1 vlans map : 10, 20
Region Root Priority?? 4096
Address???? 001a.a979.bc44
this bridge is region root
Bridge ID? Priority??? 4096
Address???? 001a.a979.bc44
Interface??????? Role Sts??? Cost?????? Prio???? Type? OperEdge
---------------- ---- --- ---------- -------- ----- ---------------
Fa0/24?????????? Desg FWD 200000???? 128????? P2p?? False
Fa0/10?????????? Desg FWD 200000???? 128????? P2p?? False
MST 2 vlans map : 30, 40
Region Root Priority?? 4096
Address???? 001a.a979.b880
this bridge is region root
Bridge ID? Priority??? 32768
Address???? 001a.a979.bc44
Interface??????? Role Sts Cost?????? Prio???? Type? OperEdge
---------------- ---- --- ---------- -------- ----- ---------------
Fa0/24?????????? Altn BLK 200000???? 128????? P2p?? False
Fa0/10?????????? Root FWD 200000???? 128????? P2p?? False
Ruijie#show spanning-tree mst 1?????? 查看MST實(shí)例1
###### MST 1 vlans mapped : 10, 20
BridgeAddr : 001a.a979.bc44
Priority: 4096
TimeSinceTopologyChange : 0d:0h:0m:56s
TopologyChanges : 9
DesignatedRoot : 1001.001a.a979.bc44
RootCost : 0
RootPort : 0
總結(jié)
以上是生活随笔為你收集整理的华为mstp多生成树配置_【交换机】交换机如何配置MSTP(多实例生成树协议)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 图解全排列问题_一道笔试题(122345
- 下一篇: hbuilder版本更新失败_初试vue