71
Usage guidelines
The master in an IPv4 VRRP group periodically sends VRRP advertisements to declare its presence.
You can use this command to configure the interval at which the master sends VRRP
advertisements.
As a best practice, set the VRRP advertisement interval to be greater than 100 centiseconds to
maintain system stability.
In VRRPv2, all routers in an IPv4 VRRP group must have the same interval for sending VRRP
advertisements.
In VRRPv3, the routers in an IPv4 VRRP group can have different intervals for sending VRRP
advertisements. The master in the VRRP group sends VRRP advertisements at the specified interval
and carries the interval attribute in the advertisements. After a backup receives the advertisement, it
records the interval in the advertisement. If the backup does not receive a new VRRP advertisement
from the master when the timer (3 × recorded in Skew_Time) expires, it regards the master
as failed and takes over as the master.
Large network traffic might disable a backup from receiving VRRP advertisements from the master
within the specified time and trigger an unexpected master switchover. To solve this problem, you
can use this command to configure a larger interval.
Examples
# Configure the master in IPv4 VRRP group 1 to send VRRP advertisements at an interval of 500
centiseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 timer advertise 500
Related commands
display
vrrp
vrrp vrid track
Use
vrrp
vrid track
to associate a VRRP group with a track entry and control master switchover in
the VRRP group in response to changes (such as uplink state changes) detected by the track entry.
Use
undo vrrp
vrid track
to remove the association between a 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 vrid
virtual-router-id
track
track-entry-number
[
reduced
priority-reduced
|
switchover
]
undo vrrp vrid
virtual-router-id
track
[
track-entry-number
]
Default
A VRRP group is not associated with any track entry.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
virtual-router-id
:
Specifies an IPv4 VRRP group number in the range of 1 to 255.