■検証1:DSW1_3750のfa1/0/4を抜線
    ⇒各VLANのActive、Standbyの切り替わりを確認する

■検証2:DSW2_3750のfa1/0/4を抜線
    ⇒各VLANのActive、Standby切り替わりを確認する

※トラッキング対象のインターフェイスがダウンした時に、プライオリティ値から減算する値を明示的に設定しない場合は、デフォルトでプライオリティ値から−10される。

※減算されたプライオリティ値が、A系、B系で同等であった場合は、Active⇒Standbyの切り替わりは起こらない。

※vlan101はDSW2_3750がActiveに切り替わっており、SW2_2950のpvstにおいてvlan101のfa0/1(上位
DSW2_3750 Active)はブロッキング状態であるが、SW1_2950のvlan101のマシンに対するpingはOKであった。


■DSW1_3750投入コンフィグ
conf t
!
ip routing
!
vlan 101-103
vlan 1
shutdown
!
spanning-tree vlan 101-103
spanning-tree vlan 102 priority 4096
spanning-tree vlan 101,103 priority 8192
!
int fa1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
int vlan1
shutdown
!
int vlan101
ip address 172.16.101.3 255.255.255.0
standby 1 ip 172.16.101.1
standby 1 preempt
standby 1 track fa1/0/4
standby 1 authentication CCNP_101
no shut
!
int vlan102
ip address 172.16.102.3 255.255.255.0
standby 2 ip 172.16.102.1
standby 2 priority 150
standby 2 preempt
standby 2 track fa1/0/4 60
standby 2 authentication CCNP_102
no shut
!
int vlan103
ip address 172.16.103.3 255.255.255.0
standby 3 ip 172.16.103.1
standby 3 preempt
standby 3 track fa1/0/4
standby 3 authentication CCNP_103
no shut
!
end


■DSW2_3750投入コンフィグ
conf t
!
ip routing
!
vlan 101-103
vlan 1
shutdown
!
spanning-tree vlan 101-103
spanning-tree vlan 102 priority 4096
spanning-tree vlan 101,103 priority 8192
!
int fa1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa1/0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
int vlan1
shutdown
!
int vlan101
ip address 172.16.101.3 255.255.255.0
standby 1 ip 172.16.101.1
standby 1 preempt
standby 1 track fa1/0/4
standby 1 authentication CCNP_101
no shut
!
int vlan102
ip address 172.16.102.3 255.255.255.0
standby 2 ip 172.16.102.1
standby 2 priority 150
standby 2 preempt
standby 2 track fa1/0/4 60
standby 2 authentication CCNP_102
no shut
!
int vlan103
ip address 172.16.103.3 255.255.255.0
standby 3 ip 172.16.103.1
standby 3 preempt
standby 3 track fa1/0/4
standby 3 authentication CCNP_103
no shut
!
end


■DSW3_3560投入コンフィグ
conf t
!
vlan 101-103
!
int fa0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
int fa0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
int vlan101
no shut
!
int vlan102
no shut
!
int vlan103
no shut
!
end


■SW1投入コンフィグ
conf t
!
vlan 101,102,103
!
int fa0/1
switchport mode trunk
!
int fa0/2
switchport mode trunk
!
int fa0/3
switchport mode access
switchport access vlan 101
!
end


■SW2投入コンフィグ
conf t
!
vlan 101,102,103
!
int fa0/1
switchport mode trunk
!
int fa0/2
switchport mode trunk
!
int fa0/3
switchport mode access
switchport access vlan 103
!
end


■検証1:DSW1_3750のfa1/0/4を抜線
■抜線前
DSW1_3750#sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl101 1 150 P Active local 172.16.101.3 172.16.101.1
Vl102 2 100 P Standby 172.16.102.3 local 172.16.102.1
Vl103 3 150 P Active local 172.16.103.3 172.16.103.1


■抜線後
⇒VLAN101のActiveがstandbyに切り替わる

DSW1_3750#
*Mar 1 00:59:46.574: %TRACKING-5-STATE: 1 interface Fa1/0/4 line-protocol Up->Down
*Mar 1 00:59:47.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/4, changed state to down
*Mar 1 00:59:48.310: %LINK-3-UPDOWN: Interface FastEthernet1/0/4, changed state to down
*Mar 1 00:59:49.258: %HSRP-5-STATECHANGE: Vlan101 Grp 1 state Active -> Speak
*Mar 1 00:59:59.442: %HSRP-5-STATECHANGE: Vlan101 Grp 1 state Speak -> Standby
DSW1_3750#
DSW1_3750#sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl101 1 95 P Standby 172.16.101.3 local 172.16.101.1
Vl102 2 90 P Standby 172.16.102.3 local 172.16.102.1
Vl103 3 100 P Active local 172.16.103.3 172.16.103.1


■検証2:DSW2_3750のfa1/0/4を抜線
■抜線後
⇒VLAN101のstandbyがActiveに切り替わる(戻り)

DSW1_3750#
*Mar 1 01:01:23.907: %HSRP-5-STATECHANGE: Vlan101 Grp 1 state Standby -> Active
*Mar 1 01:01:24.813: %HSRP-5-STATECHANGE: Vlan102 Grp 2 state Standby -> Active
*Mar 1 01:01:46.665: %HSRP-5-STATECHANGE: Vlan102 Grp 2 state Active -> Speak
*Mar 1 01:01:58.300: %HSRP-5-STATECHANGE: Vlan102 Grp 2 state Speak -> Standby
DSW1_3750#
DSW1_3750#sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl101 1 95 P Active local 172.16.101.3 172.16.101.1
Vl102 2 90 P Standby 172.16.102.3 local 172.16.102.1
Vl103 3 100 P Active local 172.16.103.3 172.16.103.1
DSW1_3750#


SW1_2950#sh spanning-tree

VLAN0101
Spanning tree enabled protocol ieee
Root ID Priority 4197
Address 0013.6030.3a80
Cost 38
Port 2 (FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32869 (priority 32768 sys-id-ext 101)
Address 000d.2903.e680
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300

Interface Role Sts Cost Prio.Nbr Type

                                • ---- --- --------- -------- --------------------------------

Fa0/2 Root FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p


SW2_2950#sh spanning-tree

VLAN0101
Spanning tree enabled protocol ieee
Root ID Priority 4197
Address 0013.6030.3a80
Cost 19
Port 2 (FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32869 (priority 32768 sys-id-ext 101)
Address 000a.8a84.6ec0
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300

Interface Role Sts Cost Prio.Nbr Type

                                • ---- --- --------- -------- --------------------------------

Fa0/1 Altn BLK 19 128.1 P2p
Fa0/2 Root FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 Edge P2p