STP
#show spanning-tree bri 檢視STP生成樹
SW conf#spanning-tree vlan 1 priority root 修改優先級為根,可以改成數字,0為最低
SW conf#spanning-tree vlan 1 priority primary 自動指定根和被根
Portfast
SW conf-if>spanning-tree portfast 不去計算根和被根,端口下隻能接主機,不能接交換機等
SW conf-if>spanning-tree portfast bpduguard 私接交換機斷網
VTP
cont#vtp domain NAME 兩邊VLAN的VTP設定一樣的名字
cont# vtp mode server/client server的vlan傳到client,client不能建立VLAN
cont# vtp mode transparent 更改為傳輸模式再打開VTP後,可以從client收到vlan
VTP儲存在flash: vlan.dat下
#dir flash: 有個vlan.dat檔案
#show vtp status檢視VTP
本文轉自echoroot 51CTO部落格,原文連結:http://blog.51cto.com/echoroot/1921826,如需轉載請自行聯系原作者