Table Of Contents
Restrictions for VRRP Object Tracking
Information About VRRP Object Tracking
VRRP Object Tracking Feature Design
Benefits of VRRP Object Tracking
How to Configure VRRP Object Tracking
Configuring VRRP Object Tracking
Verifying VRRP Object Tracking
Configuration Examples for VRRP Object Tracking
VRRP Object Tracking Verification: Example
VRRP Object Tracking
The VRRP Object Tracking feature extends the capabilities of the Virtual Router Redundancy Protocol (VRRP) to allow tracking of specific objects within the router that can alter the priority level of a virtual router for a VRRP group. For example, a WAN interface can be tracked and if it goes down, then the priority of the VRRP group can be lowered, which may allow another VRRP router to become the new group master virtual router.
Feature History for the VRRP Object Tracking Feature
Release Modification12.3(2)T
This feature was introduced.
12.2(25)S
This feature was integrated into Cisco IOS Release 12.2(25)S.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for VRRP Object Tracking
•
Information About VRRP Object Tracking
•
How to Configure VRRP Object Tracking
•
Configuration Examples for VRRP Object Tracking
Restrictions for VRRP Object Tracking
If a VRRP group is the IP address owner, its priority is fixed at 255 and can not be reduced through object tracking.
Information About VRRP Object Tracking
Before you configure the VRRP Object Tracking feature, you should understand the following concepts:
•
VRRP Object Tracking Feature Design
•
Benefits of VRRP Object Tracking
Object Tracking
Object tracking is an independent process that manages creating, monitoring, and removing tracked objects such as the state of the line-protocol of an interface. Clients such as HSRP, GLBP, and now VRRP register their interest with specific tracked objects and act when the state of an object changes.
Each tracked object is identified by a unique number that is specified on the tracking command-line interface (CLI). Client processes such as VRRP use this number to track a specific object.
The tracking process periodically polls the tracked objects and notes any change of value. The changes in the tracked object are communicated to interested client processes, either immediately or after a specified delay. The object values are reported as either up or down.
VRRP Object Tracking Feature Design
The VRRP Object Tracking feature gives VRRP access to all the objects available through the tracking process. The tracking process provides the ability to track individual objects such as a the state of an interface line protocol, state of an IP route, or the reachability of a route.
VRRP provides an interface to the tracking process. Each VRRP group can track multiple objects that may affect the priority of the VRRP router. You specify the object number to be tracked and VRRP will be notified of any change to the object. VRRP increments (or decrements) the priority of the virtual router based on the state of the object being tracked.
Benefits of VRRP Object Tracking
VRRP object tracking provides a way to ensure the best VRRP router is Master for the group by altering VRRP priorities to the status of tracked objects such as interface or IP route states.
How to Configure VRRP Object Tracking
This section contains the following procedure:
•
Configuring VRRP Object Tracking
Configuring VRRP Object Tracking
This task configures VRRP object tracking.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
track object-number interface type number {line-protocol | ip routing}
4.
interface type-number
5.
vrrp [group-number] ip ip-address
6.
vrrp [group-number] priority level
7.
vrrp [group-number] track object-number [decrement priority]
DETAILED STEPS
Verifying VRRP Object Tracking
To verify VRRP object tracking, use the following commands:
SUMMARY STEPS
1.
enable
2.
show track [object-number]
3.
show vrrp [brief | group]
DETAILED STEPS
Configuration Examples for VRRP Object Tracking
This section provides the following configuration examples:
•
VRRP Object Tracking: Example
•
VRRP Object Tracking Verification: Example
VRRP Object Tracking: Example
In the following example, the tracking process is configured to track the state of the line protocol on serial interface 0/1. VRRP on ethernet interface 1/0 then registers with the tracking process to be informed of any changes to the line protocol state of serial interface 0/1. If the line protocol state on serial interface 0/1 goes down, then the priority of the VRRP group is reduced by 15.
track 1 interface Serial0/1 line-protocol!interface Ethernet1/0ip address 12.0.0.1 255.0.0.0vrrp 1 ip 12.0.0.2vrrp 1 priority 120vrrp 1 track 1 decrement 15VRRP Object Tracking Verification: Example
The following examples verify the configuration shown in the "VRRP Object Tracking: Example" section:
Router# show vrrpEthernet1/0 - Group 1State is MasterVirtual IP address is 12.0.0.2Virtual MAC address is 0000.5e00.0101Advertisement interval is 1.000 secPreemption is enabledmin delay is 0.000 secPriority is 105Track object 1 state Down decrement 15Master Router is 12.0.0.1 (local), priority is 105Master Advertisement interval is 1.000 secMaster Down interval is 3.531 secRouter# show trackTrack 1Interface Serial0/1 line-protocolLine protocol is Down (hw down)1 change, last change 00:06:53Tracked by:VRRP Ethernet1/0 1Additional References
The following section provides additional information related to the VRRP Object Tracking feature:
Related Documents
Related Topic Document TitleVRRP configuration tasks
Virtual Router Redundancy Protocol feature document, Release 12.2(13)T
VRRP commands: complete command syntax, command mode, defaults, usage guidelines, and examples
Cisco IOS IP Command Reference, Volume 1 of 4: Addressing and Services, Release 12.3
Object tracking within Cisco IOS software
Enhanced Object Tracking feature document, Release 12.2(15)T
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new and modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3T command reference publications.
New Command
Modified Command
show vrrp
To display a brief or detailed status of one or all configured Virtual Router Redundancy Protocol (VRRP) groups on the router, use the show vrrp command in privileged EXEC mode.
show vrrp [brief | group]
Syntax Description
Command Modes
Privileged EXEC
Command History
Usage Guidelines
If no group is specified, all groups are displayed.
Examples
The following is sample output for the show vrrp command:
Router# show vrrpEthernet1/0 - Group 1State is MasterVirtual IP address is 10.2.0.10Virtual MAC address is 0000.5e00.0101Advertisement interval is 3.000 secPreemption is enabledmin delay is 0.000 secPriority 100Track object 1 state down decrement 15Master Router is 10.2.0.1 (local), priority is 100Master Advertisement interval is 3.000 secMaster Down interval is 9.609 secEthernet1/0 - Group 2State is MasterVirtual IP address is 10.0.0.20Virtual MAC address is 0000.5e00.0102Advertisement interval is 1.000 secPreemption is enabledmin delay is 0.000 secPriority 95Master Router is 10.0.0.1 (local), priority is 95Master Advertisement interval is 1.000 secMaster Down interval is 3.628 secTable 1 describes the significant fields shown in the display.
The following is sample output from the show vrrp command with the brief keyword:
Router# show vrrp briefInterface Grp Prio Time Own Pre State Master addr Group addrEthernet1/0 1 100 3609 P Master 1.0.0.4 1.0.0.10Ethernet1/0 2 105 3589 P Master 1.0.0.4 1.0.0.20Table 2 describes the significant fields shown in the display.
Related Commands
Command Descriptionvrrp ip
Enables VRRP on an interface and identifies the IP address of the virtual router.
vrrp track
To configure the Virtual Router Redundancy Protocol (VRRP) to track an object, use the vrrp track command in interface configuration mode. To disable the tracking, use the no form of this command.
vrrp [group-number] track object-number [decrement priority]
no vrrp [group-number] track object-number [decrement priority]
Syntax Description
Defaults
The default decrement value is 10. The range is from 1 and 255.
Command Modes
Interface configuration
Command History
Release Modification12.3(2)T
This command was introduced.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.
Usage Guidelines
You can configure VRRP to track specific objects, such as an interface or IP route, that can alter the priority level of a virtual router for a VRRP group. The tracked objects are first defined using the track interface or track ip route global configuration command. The client process, in this case VRRP, registers interest in tracking these objects and can then be notified when the tracked object changes state.
Examples
In the following example, the tracking process is configured to track the IP routing capability of serial interface 1/0. VRRP on Ethernet interface 0/0 then registers with the tracking process to be informed of any changes to the IP routing state of serial interface 1/0. If the IP state on serial interface 1/0 goes down, then the priority of the VRRP group is reduced by 10.
If both serial interfaces are operational, then Router A will be the master virtual router because it has the higher priority.
However, if IP routing on serial interface 1/0 in Router A fails, then the HSRP group priority will be reduced and Router B will take over as the master virtual router, thus maintaining a default virtual gateway service to hosts on the 10.1.0.0 subnet.
Router A Configuration
!track 100 interface serial1/0 ip routing!interface Ethernet0/0ip address 10.1.0.21 255.255.0.0vrrp 1 ip 10.1.0.1vrrp 1 priority 105vrrp 1 track 100 decrement 10Router B Configuration
!track 100 interface serial1/0 ip routing!interface Ethernet0/0ip address 10.1.0.22 255.255.0.0vrrp 1 ip 10.1.0.1vrrp 1 priority 100vrrp 1 track 100 decrement 10Related Commands
Command Descriptiontrack interface
Configures an interface to be tracked.
track ip route
Tracks the state of an IP route.
Glossary
backup virtual router—One or more VRRP routers that are available to assume the role of forwarding packets if the master virtual router fails.
master virtual router—The VRRP router that is currently responsible for forwarding packets sent to the IP addresses of the virtual router. Usually the master virtual router also functions as the IP address owner.
virtual IP address owner—The VRRP router that owns the IP address of the virtual router. The owner is the router that has the virtual router address as its physical interface address.
virtual router—One or more VRRP routers that form a group. The virtual router acts as the default gateway router for LAN clients. Also known as a VRRP group.
VRRP router—A router that is running VRRP.
Note
Refer to the Internetworking Terms and Acronyms for terms not included in this glossary.
Copyright © 2003 Cisco Systems, Inc. All rights reserved.

