■検証1:line-protocolを基にしたオブジェクトトラッキング

    ⇒interface fa0/0に対するline-protocolを基にしたオブジェクトトラッキングを設定

    ⇒トラッキングの状態を確認する

    ⇒VLAN101のMaster、Backupの状態を確認する

    ⇒R3_3640Aのfa0/0を抜線

    ⇒トラッキングの状態を確認する

    ⇒VLAN101のMaster、Backupの切り替わりを確認する

    ⇒R3_3640Aのfa0/0を結線

    ⇒トラッキングの状態を確認する

    ⇒VLAN101のMaster、Backupの切り戻りを確認する

※検証にL3SWではなくルータを使用しているのは、当方所有のL3SWではVRRPが設定できないからです。


■R3_3640A投入コンフィグ
conf t
!
int fa0/0
ip address 10.0.0.1 255.255.255.252
no shut
!
int fa0/1
no ip address
no shut
!
int fa0/1.101
encapsulation dot1q 101
ip address 172.16.101.2 255.255.255.0
vrrp 101 ip 172.16.101.1
vrrp 101 track 1 decrement 20
vrrp 101 preempt delay minimum 30
vrrp 101 timers advertise 3
vrrp 101 timers learn
vrrp 101 authentication md5 key-chain test
no shut
!
track 1 interface fastethernet0/0 line-protocol
!
key chain test
key 1
key-string cisco
!
router ospf 1
network 10.0.0.0 0.0.0.3 area 0
network 172.16.101.0 0.0.0.255 area 0
passive-interface fa0/1.101
!
end


■R4_3640投入コンフィグ
conf t
!
int fa0/0
ip address 10.0.0.5 255.255.255.252
no shut
!
int fa0/1
no ip address
no shut
!
int fa0/1.101
encapsulation dot1q 101
ip address 172.16.101.3 255.255.255.0
vrrp 101 ip 172.16.101.1
vrrp 101 priority 90
vrrp 101 timers advertise 3
vrrp 101 timers learn
vrrp 101 authentication md5 key-chain test
no shut
!
key chain test
key 1
key-string cisco
!
router ospf 1
network 10.0.0.4 0.0.0.3 area 0
network 172.16.101.0 0.0.0.255 area 0
passive-interface fa0/1.101
!
end


■R5_3640投入コンフィグ
conf t
!
int loopback 0
ip address 1.1.1.1 255.255.255.255
!
int fa0/0
ip address 10.0.0.2 255.255.255.252
no shut
!
int fa0/1
ip address 10.0.0.6 255.255.255.252
no shut
!
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.4 0.0.0.3 area 0
!
end


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


■検証1:line-protocolを基にしたオブジェクトトラッキング
    ⇒トラッキングの状態を確認する
R3_3640A#sh track brief
Track Object Parameter Value
1 interface FastEthernet0/0 line-protocol Up


R3_3640A#sh track
Track 1
Interface FastEthernet0/0 line-protocol
Line protocol is Up
2 changes, last change 00:01:59
Tracked by:
VRRP FastEthernet0/1.101 101


    ⇒VLAN101のMaster、Backupの状態を確認する
R3_3640A#sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1.101 101 100 9609 Y Master 172.16.101.2 172.16.101.1


    ⇒R3_3640Aのfa0/0を抜線
R3_3640A#
*Mar 1 04:57:17.899: %TRACKING-5-STATE: 1 interface Fa0/0 line-protocol Up->Down
*Mar 1 04:57:18.651: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
*Mar 1 04:57:18.655: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 1 04:57:26.067: %VRRP-6-STATECHANGE: Fa0/1.101 Grp 101 state Master -> Backup


    ⇒トラッキングの状態を確認する
R3_3640A#sh track brief
Track Object Parameter Value
1 interface FastEthernet0/0 line-protocol Down (hw line state down)


R3_3640A#sh track
Track 1
Interface FastEthernet0/0 line-protocol
Line protocol is Down (hw line state down)
3 changes, last change 00:03:25
Tracked by:
VRRP FastEthernet0/1.101 101


    ⇒VLAN101のMaster、Backupの切り替わりを確認する
R3_3640A#sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1.101 101 80 9609 Y Backup 172.16.101.3 172.16.101.1


    ⇒R3_3640Aのfa0/0を結線
R3_3640A#
*Mar 1 05:02:37.899: %TRACKING-5-STATE: 1 interface Fa0/0 line-protocol Down->Up
*Mar 1 05:02:38.651: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar 1 05:03:09.091: %VRRP-6-STATECHANGE: Fa0/1.101 Grp 101 state Backup -> Master
*Mar 1 05:03:18.671: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done


    ⇒トラッキングの状態を確認する
R3_3640A#sh track brief
Track Object Parameter Value
1 interface FastEthernet0/0 line-protocol Up


R3_3640A#sh track
Track 1
Interface FastEthernet0/0 line-protocol
Line protocol is Up
4 changes, last change 00:02:11
Tracked by:
VRRP FastEthernet0/1.101 101


    ⇒VLAN101のMaster、Backupの切り戻りを確認する
R3_3640A#sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1.101 101 100 9609 Y Master 172.16.101.2 172.16.101.1