< Home

vrrp vrid version-3 send-packet-mode

Function

The vrrp vrid version-3 send-packet-mode command configures a mode in which VRRPv3 Advertisement packets are sent on an interface.

The undo vrrp vrid version-3 send-packet-mode command restores the default mode.

By default, VRRPv3 Advertisement packets are sent in v3-only mode.

Format

vrrp vrid virtual-router-id version-3 send-packet-mode { v2-only | v3-only | v2v3-both }

undo vrrp vrid virtual-router-id version-3 send-packet-mode

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.
v2-only Indicates that only VRRPv2 Advertisement packets are sent. -
v3-only Indicates that only VRRPv3 Advertisement packets are sent. -
v2v3-both Indicates that both VRRPv2 and VRRPv3 Advertisement packets are sent. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If devices in a VRRP group use different VRRP version numbers, the VRRP group may fail to negotiate the status. This is because a VRRPv2-enabled device can only receive VRRPv2 Advertisement packets and discards the received VRRPv3 Advertisement packets. You can set the mode in which VRRP Advertisement packets are sent on the VRRPv3-enabled device so that the VRRPv2-enabled and VRRPv3-enabled devices can negotiate the status.

Precautions

  • Only VRRPv3 supports this command.

  • If the vrrp version-3 send-packet-mode command is used in the system view and interface view simultaneously, the configuration in the interface view takes effect.

If a large number of VRRP groups are configured, v2v3-both is not recommended.

Example

# Set the mode in which VRRPv3 Advertisement packets are sent to v2-only on VLANIF100.
<HUAWEI> system-view
[HUAWEI] vrrp version v3
[HUAWEI] vrrp version-3 send-packet-mode v2-only
Warning: The globally configured packet sending mode will take effect for every VRRP backup group.Continue?[Y/N]:y
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] vrrp vrid 24 version-3 send-packet-mode v2-only
# Set the mode in which VRRPv3 Advertisement packets are sent to v2-only on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] vrrp version v3
[HUAWEI] vrrp version-3 send-packet-mode v2-only
Warning: The globally configured packet sending mode will take effect for every VRRP backup group.Continue?[Y/N]:y
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] vrrp vrid 24 version-3 send-packet-mode v2-only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >