cisco_track_hsrp_standby
2010/02/22 17:25

我的模拟器版本不支持VRRP的track,只能使用HSRP了。。。应该说,track也就是这么用的。。。

!
!
track 2 ip route 23.1.1.3 255.255.255.0 reachability
!
!
!
interface FastEthernet0/0
ip address 123.1.1.3 255.255.255.0
duplex full
standby 2 ip 123.1.1.1
standby 2 priority 110
standby 2 preempt
standby 2 track 2 decrement 20
!
============================================
实验证明track是相当有用的。

R2_hsrp#sh standby
FastEthernet0/0 - Group 2
State is Standby
    7 state changes, last state change 00:03:39
Virtual IP address is 123.1.1.1
Active virtual MAC address is 0000.0c07.ac02
    Local virtual MAC address is 0000.0c07.ac02 (default)
Hello time 3 sec, hold time 10 sec
    Next hello sent in 2.356 secs
Preemption enabled
Active router is 123.1.1.2, priority 100 (expires in 8.324 sec)
Standby router is local
Priority 90 (configured 110)
    Track object 2 state Down decrement 20
IP redundancy name is "hsrp-Fa0/0-2" (default)


-------
R2_hsrp#sh track 2
Track 2
IP route 23.1.1.3 255.255.255.0 reachability
Reachability is Down (no route)
    1 change, last change 00:12:21
First-hop interface is unknown
Tracked by:
    HSRP FastEthernet0/0 2
R2_hsrp#

-------

V2_hsrp#sh track brief
Track   Object                         Parameter        Value
2       ip route 23.1.1.3/24          reachability     Down (no route)