Changing Object Priority
You can use the ip vrrp track command (in conjunction with the track command) to track an object by its virtual router ID (VRID). When the state of the object changes from an up state to a down state, the priority of the vrid is decremented. When the object changes back to an up state the priority is restored. You can specify a priority value in the range 1255 to be used for modifying the priority; the default value is 10.
NOTE: For information about the track command see JUNOSe System Basics Configuration Guide, Chapter 5, Managing the System.
ip vrrp track
- Use to dynamically change the priority of a virtual router ID (VRID) in response to a change in the state of a specified object. You can specify the value by which the priority changes in the range 1255 or use the default value (10). Multiple VRIDs can track the same object and a single VRID can track multiple objects. The object priority is restored when the state of the object returns to an up state.
- Example 1
host1(config-if)#ip vrrp 25 track abcExample 2 host1(config-if)#ip vrrp track xyz decrement 15Use the no version to disable any tracking for the object.