The set protocols vrrp interface vif vrid interval command sets the interval at which the VRRP device sends VRRP advertisement packets.
This command applies to both VRRPv2 and VRRPv3 configuration.
set protocols vrrp interface <interface-name> vif <vif-name> vrid <virtual-router-id> interval <interval-value>
Specifies the Layer 3 interface name of VRRP device. The value is a string.
Specifies the VLAN interface name. The value is a string.
Specifies the VRID of a VRRP group. The value is an integer that ranges from 1 to 254.
Specifies the interval at which the VRRP device sends VRRP advertisement packets.
The value is an integer, in seconds. For VRRPv2, the value ranges from 1 to 255. For VRRPv3, the value ranges from 1 to 40.
The default value is 1s for both VRRPv2 and VRRPv3.
If a larger interval is used, a backup device in the same VRRP group will not be able to detect the fault on the master in a timely fashion and can potentially cause packet loss. If a smaller interval is used, system resources are occupied. It is therefore recommended to set the interval based on actual network performance.
The configurations of the interval of sending VRRP advertisement packets on both devices of VRRP group must be the same.
- Set the interval of sending VRRP advertisement to 5 seconds.