vrrp ipv6 vrid track

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 vrrp ipv6 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.

Syntax

vrrp ipv6 vrid virtual-router-id track track-entry-number { forwarder-switchover member-ip ipv6-address | priority reduced [ priority-reduced ] | switchover | weight reduced [ weight-reduced ] }

undo vrrp ipv6 vrid virtual-router-id track [ track-entry-number [ forwarder-switchover | priority reduced | switchover | weight reduced ] ]

Default

An IPv6 VRRP group and the VFs in an IPv6 VRRP group are not associated with any track entry.

Views

Interface view

Predefined user roles

network-admin

Parameters

virtual-router-id: Specifies an IPv6 VRRP group number in the range of 1 to 255.

track-entry-number: Specifies a track entry. The track-entry-number argument is in the range of 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.

priority 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 negative. The priority-reduced argument is in the range of 1 to 255, and the default is 10.

switchover: Enables the router in backup state to take over as the master immediately after the specified track entry changes to the negative state.

weight reduced priority-reduced: Reduces the weight of all VFs on the router in the VRRP group by a specific value when the state of the specified track entry changes to negative. The weight-reduced argument is in the range of 1 to 255, and the default is 30.

Usage guidelines

When the associated track entry changes to the negative state, one of the following conditions occurs, depending on your configuration:

Before executing this command, create an IPv6 VRRP group on the interface and assign a virtual IPv6 address to it.

The forwarder-switchover member-ip ipv6-address or weight reduced weight-reduced option takes effect only when the IPv6 VRRP group is operating in load balancing mode.

If the priority reduced keyword is specified but the priority-reduced argument is not specified, the priority of the router in the IPv6 VRRP group decreases by 10 when the track entry changes to negative.

If the weight reduced keyword is specified but the weight-reduced argument is not specified, the weight of the VFs on the router in the IPv6 VRRP group decreases by 30 when the track entry changes to negative.

The weight of a VF is 255, and its lower limit of failure is 10.

When the weight of a VF owner is higher than or equal to the lower limit of failure, its priority is always 255 and does not change with the weight. To guarantee that an LVF can take over the VF owner as the AVF when the upstream link of the VF owner fails, the reduced weight for the VF owner must be higher than 245 so the weight of the VF owner can drop below the lower limit of failure.

When the track entry changes from Negative to Positive or NotReady, the router automatically restores its priority or VF weight. The failed master router becomes the master again, or the failed AVF becomes active again.


[IMPORTANT: ]

IMPORTANT:

  • The vrrp ipv6 vrid track priority reduced or vrrp ipv6 vrid track switchover 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.


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-interface2
[Sysname-Vlan-interface2] vrrp vrid 1 track 1 priority reduced 50

# Associate IPv6 VRRP group 1 on VLAN-interface 2 with track entry 1 and enable the VF in listening state whose AVF is on the member device with the IPv6 address of 11::22 to take over immediately after the specified track entry changes to the negative state.

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 1 forwarder-switchover member-ip 11::22

# Associate IPv6 VRRP group 1 on VLAN-interface 2 with track entry 1 and decrease the weight of all VFs on the router in the IPv6 VRRP group by 50 when the state of track entry 1 changes to negative.

[Sysname-Vlan-interface2] vrrp ipv6 vrid 1 track 1 weight reduced 50

Related commands

display vrrp ipv6