The set protocols vrrp interface vrid version command assigns the VRRP version on the VRRP-enabled device.
This command applies to both VRRPv2 and VRRPv3 configuration.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> version <2 | 3>
Specifies the Layer 3 interface name of VRRP device. The value is a string.
Specifies the VRID of a VRRP group. The value is an integer that ranges from 1 to 254.
version <2 | 3>
Specifies the VRRP version. The value could be 2 or 3, indicating VRRPv2 or VRRPv3.
By default, the system uses VRRPv2.
VRRPv3 supports IPv4 and IPv6 address families while VRRPv2 only supports IPv4 addresses. That is,
- A VRRPv2 group can send and receive only VRRPv2 Advertisement packets. The VRRPv2 group discards the received VRRPv3 Advertisement packets.
- A VRRPv3 group can send and receive both VRRPv2 and VRRPv3 Advertisement packets.
- Assign the VRRP version.