這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
network:linkspanningtreefamilyvlan [2014/08/16 04:08] ali88 [設定配置] |
network:linkspanningtreefamilyvlan [2014/08/21 02:35] (目前版本) ali88 [設定配置] |
||
---|---|---|---|
行 43: | 行 43: | ||
SB(config)#spanning-tree mode pvst | SB(config)#spanning-tree mode pvst | ||
SC(config)#spanning-tree mode pvst | SC(config)#spanning-tree mode pvst | ||
+ | </code> | ||
+ | - 指定SA為Vlan 10的Root Bridge;SB為Vlan 20的 Root Bridge;SC為Vlan 1 的Root Vlan<code> | ||
+ | SA(config)#spanning-tree vlan 10 root primary | ||
+ | SB(config)#spanning-tree vlan 20 root primary | ||
+ | SC(config)#spanning-tree vlan 1 root primary | ||
+ | </code> | ||
+ | - 驗證SA結果<code> | ||
+ | SA#show spanning-tree vlan 10 | ||
+ | VLAN0010 | ||
+ | Spanning tree enabled protocol ieee | ||
+ | Root ID Priority 24586 | ||
+ | Address 0060.4746.A954 | ||
+ | This bridge is the root | ||
+ | Hello Time 2 sec Max Age 20 sec Forward Delay 15 | ||
+ | ~略 | ||
+ | Interface Role Sts Cost Prio.Nbr Type | ||
+ | ---------------- ---- --- --------- -------- -------------------------------- | ||
+ | Fa0/1 Desg FWD 19 128.1 P2p | ||
+ | Fa0/2 Desg FWD 19 128.2 P2p | ||
+ | </code> | ||
+ | - 驗證SB結果<code> | ||
+ | SB#show spanning-tree vlan 20 | ||
+ | Spanning tree enabled protocol ieee | ||
+ | Root ID Priority 24596 | ||
+ | Address 00E0.B047.0540 | ||
+ | This bridge is the root | ||
+ | Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec | ||
+ | ~略~ | ||
+ | Interface Role Sts Cost Prio.Nbr Type | ||
+ | ---------------- ---- --- --------- -------- -------------------------------- | ||
+ | Fa0/1 Desg FWD 19 128.1 P2p | ||
+ | Fa0/3 Desg FWD 19 128.3 P2p | ||
+ | </code> | ||
+ | - 驗證SC結果<code> | ||
+ | SC#show spanning-tree vlan 1 | ||
+ | VLAN0001 | ||
+ | Spanning tree enabled protocol ieee | ||
+ | Root ID Priority 24577 | ||
+ | Address 0002.4A3C.06DC | ||
+ | This bridge is the root | ||
+ | Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec | ||
+ | ~略~ | ||
+ | Interface Role Sts Cost Prio.Nbr Type | ||
+ | ---------------- ---- --- --------- -------- -------------------------------- | ||
+ | Fa0/2 Desg FWD 19 128.2 P2p | ||
+ | Fa0/3 Desg FWD 19 128.3 P2p | ||
</code> | </code> | ||
======MSTP====== | ======MSTP====== | ||
行 98: | 行 144: | ||
C0(conf-mstp)#mti 2 vlan 200 | C0(conf-mstp)#mti 2 vlan 200 | ||
C0(conf-mstp)#mti 3 vlan 300 | C0(conf-mstp)#mti 3 vlan 300 | ||
+ | </code> | ||
+ | - 設定MSTi優先權,將msti 1 設定成4096;msti 2 設定成 8192;msti 3 設定成 12288<code> | ||
+ | C0(conf-mstp)#msti 1 bridge-priority 4096 | ||
+ | C0(conf-mstp)#msti 2 bridge-priority 8192 | ||
+ | C0(conf-mstp)#msti 3 bridge-priority 12288 | ||
</code> | </code> | ||
- 啟動MSTP 協定。本範例只演示C0設備,其他C1及C2按照以下方法做<code>C0(conf-mstp)#no disable</code> | - 啟動MSTP 協定。本範例只演示C0設備,其他C1及C2按照以下方法做<code>C0(conf-mstp)#no disable</code> |