vrrp vrid timer advertise
Function
The vrrp vrid timer advertise command sets the interval at which the master sends VRRP Advertisement packets.
The undo vrrp vrid timer advertise command restores the default interval at which the master sends VRRP Advertisement packets.
By default, the master sends VRRP Advertisement packets every 2 second.
Format
vrrp vrid virtual-router-id timer advertise advertise-interval
undo vrrp vrid virtual-router-id timer advertise
Parameters
Parameter | Description | Value |
---|---|---|
vrid virtual-router-id | Specifies the VRID of a VRRP group. | The value is an integer that ranges from 1 to 255. |
advertise advertise-interval | Specifies the interval at which the master sends VRRP Advertisement packets. | The value is an integer, in seconds. In VRRPv2, the value ranges from 1 to 255. In VRRPv3, the value ranges from 1 to 40. |
Usage Guidelines
The master in a VRRP group sends VRRP Advertisement packets to the backup at intervals to notify that it works properly. The vrrp vrid timer advertise command sets the interval at which the master sends VRRP Advertisement packets. If the backup with the highest priority does not receive any VRRP Advertisement packets from the master at the specified interval, it considers the master faulty and becomes the master.
PrerequisitesThe vrrp vrid virtual-ip command has been executed on an interface to create a VRRP group.
PrecautionsIf a longer interval is used, backups in the same VRRP group cannot detect the fault on the master in a timely manner, causing packet loss. If a shorter interval is used, system resources are occupied. In addition, when the network traffic is heavy or the network is unstable, backups may not receive packets after the Master_Down_Interval timer expires. As a result, the VRRP group status is incorrectly switched. Set the interval based on actual networking.