vrrp ipv6 vrid track
Syntax
vrrp ipv6 vrid virtual-router-id track track-entry-number [ forwarder-switchover member-ip ipv6-address | reduced priority-reduced | switchover ]
undo vrrp ipv6 vrid virtual-router-id track [ track-entry-number ]
View
Interface view
Default level
2: System level
Parameters
virtual-router-id: Specifies a VRRP group number, which ranges from 1 to 255.
track track-entry-number: Specifies a track entry. The track-entry-number argument ranges from 1 to 1024.
forwarder-switchover member-ip ipv6-address: Enables the LVF on the router to take over the role of the AVF at the specified IPv6 address immediately after the specified track entry changes to the negative state. You can use the display vrrp verbose command to view the IPv6 addresses of VFs.
reduced priority-reduced: Reduces the priority of the router in the VRRP group by a specific value when the state of the specified track entry changes to the negative state. The priority-reduced argument ranges from 1 to 255.
switchover: Enables the router in backup state to take over as the master immediately after the specified track entry changes to the negative state.
Description
Use vrrp ipv6 vrid track to associate an IPv6 VRRP group with a track entry and control master switchover or AVF switchover in the VRRP group in response to changes (such as uplink state changes) detected by the track entry.
Use undo ipv6 vrrp vrid track to remove the association between an IPv6 VRRP group and a track entry. If no track entry is specified, the association between the VRRP group and any track entry is removed.
By default, an IPv6 VRRP group is not associated with any track entry.
When the associated track entry changes to the negative state, the priority of the router in the VRRP group decreases by a specified value, or the router immediately takes over as the master if it is a backup router, or the LVF on the router immediately takes over the role of the AVF at the specified IPv6 address, depending on your configuration.
If forwarder-switchover member-ip ipv6-address, reduced priority-reduced, and switchover are not specified, the priority of the router in the VRRP group decreases by 10 when the track entry changes to negative.
When the track entry changes from negative to positive or invalid, the router automatically restores its priority.
You must create the VRRP group and assign a virtual IP address to it before you can associate it with any track entry.
The vrrp ipv6 vrid track command cannot take effect on an IP address owner. If you have configured the command on an IP address owner, the configuration takes effect after the router changes to be a non IP address owner.
You can create a track entry with the track command before or after you associate it with an IPv6 VRRP group. For more information about configuring track entries, see High Availability Configuration Guide.
Related commands: vrrp ipv6 vrid track interface and display vrrp ipv6.
Examples
# Associate IPv6 VRRP group 1 on VLAN-interface 2 with track entry 1 and decrease the priority of the router in the VRRP group by 50 when the state of track entry 1 changes to negative.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::2 link-local [Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 1 reduced 50
# Associate VRRP group 1 on VLAN-interface 2 with track entry 2 and enable the VF in listening state whose AVF is on the member device with the IP address of FE80::10 to take over as the AVF immediately after the specified track entry changes to the negative state.
[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 2 forwarder-switchover member-ip fe80::10