問題
SW2のGi0/2をroot portにしたい。現在の状態と接続は次のとおりである。
SW2#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0011.0022.0033
Cost 4
Port 3 (FastEthernet0/3)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0011.00bb.00cc
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 15
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/3 Root FWD 4 128.3 P2p
Gi0/2 Altn BLK 4 128.4 P2p
SW2#show run interface Gi0/2
Building configuration...
!
Interface GigabitEthernet0/2
switchport mode dynamic desirable
SW2#show run interface Fa0/3
Building configuration...
Current configuration : 102 bytes
!
Interface FastEthernet0/3
switchport mode dynamic desirable
spanning-tree cost 4


次のコマンドカードから、Gi0/2をroot portにできる2コマンドの組を2つ選べ。各組は現在の設定から独立に実行する。
A. SW2(config-if)# no spanning-tree cost
B. SW2(config)# interface Gig0/2
C. SW2(config-if)# spanning-tree cost 4
D. SW2(config)# interface Fa0/3
E. SW2(config-if)# spanning-tree cost 5
- A
D → A
- B
B → E
- C
D → E
- D
B → C
正解:A、C
理由
現在はFa0/3とGi0/2のcostが4で、Fa0/3がrootである。Fa0/3の手動costを解除して標準の19へ戻すか、5へ上げると、Gi0/2のcost 4が優先される。Gi0/2を5へ上げる操作は逆効果で、4の再設定も状態を変えない。
選択肢ごとの説明
- A.
D → A
Fa0/3を選び、手動costを解除する。FastEthernetの標準cost 19となりGi0/2の4より大きくなる。
- B.
B → E
Gi0/2のcostを5に上げる。Fa0/3の4より不利になり、Gi0/2をrootにする目的と逆である。
- C.
D → E
Fa0/3のcostを5へ上げ、Gi0/2の4を優先させる。
- D.
B → C
Gi0/2のcostは現在も4である。4を再設定してもFa0/3との優先関係を変えない。