RSTP(Rapid PVST+)の設定例②(その2)
ここからは、Rapid PVST+ の設定を行っていきます。
●S_Aの Rapid PVST+設定
S_A(config)#spanning-tree mode rapid-pvst
●S_Bの Rapid PVST+設定
S_B(config)#spanning-tree mode rapid-pvst
●S_Aでスパニングツリーのポートの確認をします。
S_A#show spanning-tree
S_Aの「show spanning-tree」コマンドの出力
S_A#show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0005.5EA2.DC98
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0005.5EA2.DC98
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/2 Desg FWD 19 128.2 P2p
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0005.5EA2.DC98
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0005.5EA2.DC98
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/2 Desg FWD 19 128.2 P2p
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 32788
Address 0005.5EA2.DC98
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20)
Address 0005.5EA2.DC98
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/5 Desg FWD 19 128.5 P2p
Fa0/2 Desg FWD 19 128.2 P2p
黄色のマークと水色のマーカーからVLANごとに、RSTP(Rapid PVST+)が有効になっていることが確認できます。
●S_Bでスパニングツリーのポートの確認をします。
S_B#show spanning-tree
●S_Bの「show spanning-tree」コマンドの出力
S_B#show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0005.5EA2.DC98
Cost 19
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 00E0.B044.7267
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3 Altn BLK 19 128.3 P2p
Fa0/2 Root FWD 19 128.2 P2p
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0005.5EA2.DC98
Cost 19
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 00E0.B044.7267
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/3 Altn BLK 19 128.3 P2p
Fa0/2 Root FWD 19 128.2 P2p
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 32788
Address 0005.5EA2.DC98
Cost 19
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20)
Address 00E0.B044.7267
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/5 Desg FWD 19 128.5 P2p
Fa0/3 Altn BLK 19 128.3 P2p
Fa0/2 Root FWD 19 128.2 P2p
黄色のマークから、VLANごとに RSTP(Rapid PVST+)が有効になっていることが確認できます。
また、水色のマーカーから、S_Bの「Fa0/3」がブロッキングポートになっていることも確認できます。
ここでは、ルートブリッジの選出について詳しく述べませんが、今回使用したスイッチでは、S_Aの方がMACアドレスが小さい値なので、S_Bの「Fa0/3」がブロッキングポートになっています。
各スイッチのポートの役割は下図のようになっています。

次の「RSTP(Rapid PVST+)の設定例②(その3)」でRSTP(Rapid PVST+)がどれほど早く収束するのかを検証していきます。