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.

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