vrrp vrid vrrpv3-send-packet

Use vrrp vrid vrrpv3-send-packet to set the packet sending mode for IPv4 VRRPv3.

Use undo vrrp vrid vrrpv3-send-packet to restore the default.

Syntax

vrrp vrid virtual-router-id vrrpv3-send-packet { v2-only | v2v3-both }

undo vrrp vrid virtual-router-id vrrpv3-send-packet

Default

A router configured with VRRPv3 sends only VRRPv3 packets.

Views

Interface view

Predefined user roles

network-admin

Parameters

virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 255.

v2-only: Sends VRRPv2 packets only.

v2v3-both: Sends both VRRPv2 and VRRPv3 packets.

Usage guidelines

This command takes effect only on IPv4 VRRPv3.

The packet sending mode for IPv4 VRRPv3 takes effect only on outgoing VRRP packets. A router configured with VRRPv3 can process incoming VRRPv2 and VRRPv3 packets.

If you set the packet sending mode for IPv4 VRRPv3 and configure VRRP packet authentication, authentication information will be carried in outgoing VRRPv2 packets but not in VRRPv3 packets.

The VRRP advertisement interval is set in centiseconds by using the vrrp vrid timer advertise command. The VRRP advertisement interval carried in VRRPv2 packets sent from routers configured with VRRPv3 might be different from the configured value. For information about the VRRP advertisement interval, see the vrrp vrid timer advertise command in High Availability Command Reference.

Examples

# Configure VRRP group 1 to send both VRRPv2 and VRRPv3 packets.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 vrrpv3-send-packet v2v3-both

Related commands

display vrrp

vrrp vrid timer advertise