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

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

    ⇒VLAN101のAVG、AVFの状態を確認する

    ⇒R3_3640Aのfa0/0を抜線

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

    ⇒VLAN101のAVFの切り替わりを確認する

    ⇒R3_3640Aのfa0/0を結線

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

    ⇒VLAN101のAVFの切り戻りを確認する


■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
glbp 101 ip 172.16.101.1
glbp 101 priority 105
glbp 101 forwarder preempt delay minimum 60
glbp 101 weighting 110 lower 95 upper 105
glbp 101 load-balancing weighted
glbp 101 weighting track 1 decrement 20
glbp 101 timers 1 3
glbp 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
glbp 101 ip 172.16.101.1
glbp 101 weighting 200 lower 185 upper 195
glbp 101 load-balancing weighted
glbp 101 timer 1 3
glbp 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.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
!
no spanning-tree 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
4 changes, last change 00:04:53
Tracked by:
GLBP FastEthernet0/1.101 101


    ⇒VLAN101のAVG、AVFの状態を確認する
R3_3640A#sh glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Fa0/1.101 101 - 105 Active 172.16.101.1 local 172.16.101.3
Fa0/1.101 101 1 - Listen 0007.b400.6501 172.16.101.3 -
Fa0/1.101 101 2 - Active 0007.b400.6502 local -


R3_3640A#sh glbp
FastEthernet0/1.101 - Group 101
State is Active
2 state changes, last state change 00:22:19
Virtual IP address is 172.16.101.1
Hello time 1 sec, hold time 3 sec
Next hello sent in 0.992 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Authentication MD5, key-chain "test"
Preemption disabled
Active is local
Standby is 172.16.101.3, priority 100 (expires in 2.888 sec)
Priority 105 (configured)
Weighting 110 (configured 110), thresholds: lower 95, upper 105
Track object 1 state Up decrement 20
Load balancing: weighted
Group members:
0002.16c3.3882 (172.16.101.3) authenticated
000c.30e2.8b62 (172.16.101.2) local
There are 2 forwarders (1 active)
Forwarder 1
State is Listen
6 state changes, last state change 00:01:12
MAC address is 0007.b400.6501 (learnt)
Owner ID is 0002.16c3.3882
Redirection enabled, 599.888 sec remaining (maximum 600 sec)
Time to live: 14399.888 sec (maximum 14400 sec)
Preemption enabled, min delay 60 sec
Active is 172.16.101.3 (primary), weighting 200 (expires in 2.752 sec)
Forwarder 2
State is Active
3 state changes, last state change 00:05:53
MAC address is 0007.b400.6502 (default)
Owner ID is 000c.30e2.8b62
Redirection enabled
Preemption enabled, min delay 60 sec
Active is local, weighting 110


    ⇒R3_3640Aのfa0/0を抜線
R3_3640A#
*Mar 1 05:58:32.435: %TRACKING-5-STATE: 1 interface Fa0/0 line-protocol Up->Down
*Mar 1 05:58:32.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
*Mar 1 05:58:32.739: %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 05:59:02.439: %GLBP-6-FWDSTATECHANGE: FastEthernet0/1.101 Grp 101 Fwd 2 state Active -> Listen


    ⇒トラッキングの状態を確認する
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)
5 changes, last change 00:01:37
Tracked by:
GLBP FastEthernet0/1.101 101


    ⇒VLAN101のAVFの切り替わりを確認する
R3_3640A#sh glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Fa0/1.101 101 - 105 Active 172.16.101.1 local 172.16.101.3
Fa0/1.101 101 1 - Listen 0007.b400.6501 172.16.101.3 -
Fa0/1.101 101 2 - Listen 0007.b400.6502 172.16.101.3 -


    ⇒R3_3640Aのfa0/0を結線
R3_3640A#
*Mar 1 06:01:42.435: %TRACKING-5-STATE: 1 interface Fa0/0 line-protocol Down->Up
*Mar 1 06:01:42.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar 1 06:02:22.755: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
*Mar 1 06:02:43.335: %GLBP-6-FWDSTATECHANGE: FastEthernet0/1.101 Grp 101 Fwd 2 state Listen -> Active


    ⇒トラッキングの状態を確認する
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
6 changes, last change 00:02:05
Tracked by:
GLBP FastEthernet0/1.101 101


    ⇒VLAN101のAVFの切り戻りを確認する
R3_3640A#sh glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Fa0/1.101 101 - 105 Active 172.16.101.1 local 172.16.101.3
Fa0/1.101 101 1 - Listen 0007.b400.6501 172.16.101.3 -
Fa0/1.101 101 2 - Active 0007.b400.6502 local -