一、拓撲圖
? 在交換機拖出3臺S5700,然后選擇設備連線,點擊Copper進行設備接線,完成后開啟設備,

二、RSTP模式配置
[SW1]stp mode rstp
[SW2]stp mode rstp
[SW3]stp mode rstp
三、RSTP快速生成樹查看
? 命令與標準生成樹STP的命令一樣:
[SW3]display stp
[SW3]display stp brief
[SW3]display stp int g0/0/3
四、根橋變更配置
? 命令與標準生成樹STP的配置一樣:
[SW3]stp root primary --指定根交換機,可直接指定或更改交換機優先級為最小,或[SW3]stp priority 0
[SW2]stp root secondary --指定備份根或修改優先級,或[SW2]stp priority 4096
五、邊緣埠配置
? 邊緣埠通常情況下是接終端的埠,它是不參與快速生成樹計算的,直接從Discarding狀態進入Forwarding狀態:
[SW1]int g0/0/3
[SW1-GigabitEthernet0/0/3]stp edged-port enable
六、其它配置命令
[Huawei]stp pathcost-standard legacy --華為計算方式
[Huawei-GigabitEthernet0/0/3]stp cost 100 --修改介面開銷值
[Huawei-GigabitEthernet0/0/3]stp port priority ? --修改介面優先級
[Huawei]stp enable --全域下使用STP功能,接下配置優先
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/502653.html
標籤:其他
上一篇:leetcode 594. Longest Harmonious Subsequence 最長和諧子序列(簡單).md
