vrrp vrid weight track
Syntax
vrrp vrid virtual-router-id weight track track-entry-number [ reduced weight-reduced ]
undo vrrp vrid virtual-router-id weight track [ track-entry-number ]
View
Interface view
Default level
2: System level
Parameters
virtual-router-id: VRRP group number, which ranges from 1 to 255.
track track-entry-number: Specifies a track entry to be monitored by its number, in the range of 1 to 1024.
reduced weight-reduced: Specifies the value by which the weight decreases, in the range of 1 to 255. The default setting is 30.
Description
Use vrrp vrid weight track to specify the track entry to be monitored by VFs when VRRP operates in load balancing mode. If the status of the monitored track entry changes to negative, the weights of all VFs in the VRRP group to which the current router belongs decrease by a specified value.
Use undo vrrp vrid weight track to remove the specified track entry.
By default, no track entry is specified to be monitored.
The command is effective only when VRRP operates in load balancing mode.
Before executing the command, create a VRRP group on an interface and configure the virtual IP address of the VRRP group.
When the status of the monitored track entry turns from negative to positive or invalid, the corresponding VFs automatically restore their weights.
The track entry specified in this command can be nonexistent. You can use the vrrp vrid weight track command to specify a track entry, and then create the track entry using the track command.
By default, the weight of a VF is 255, and the lower limit of failure is 10. When the weight of a VF owner is no less than the lower limit of failure, the priority of the VF owner is always 255. To enable other VFs to take over the role of the VF owner as the AVF when the uplink interface fails, you must set a value larger than 245 for the reduced weight-reduced option.
For more information about track entries, see High Availability Configuration Guide.
Related commands: display vrrp.
Examples
# Configure to monitor track entry 1, making the weights of VFs belonging to VRRP group 1 on VLAN-interface 2 decrease by 50 when track entry 1 turns to negative.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1 [Sysname-Vlan-interface2] vrrp vrid 1 weight track 1 reduced 50