vrrp vrid version-3 send-packet-mode

Function

The vrrp vrid version-3 send-packet-mode command configures a VRRPv3-enabled device to send Advertisement packets of a specified version in the interface or sub-interface view.

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

By default, the mode in which VRRPv3 sends Advertisement packets is the same as that configured in the system view.

Format

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

undo vrrp vrid vrid-value version-3 send-packet-mode

Parameters

Parameter Description Value
vrid-value

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

v2-only

Indicates that a VRRPv3-enabled device sends only VRRPv2 Advertisement packets.

-

v2v3-both

Indicates that a VRRPv3-enabled device sends both VRRPv2 and VRRPv3 Advertisement packets.

-

v3-only

Indicates that a VRRPv3-enabled device sends only VRRPv3 Advertisement packets.

-

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

If devices in a VRRP group use different VRRP versions, 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. To resolve this issue, run the vrrp vrid version-3 send-packet-mode command to configure a VRRPv3-enabled device to send VRRPv2 Advertisement packets so that the VRRPv2- and VRRPv3-enabled devices can negotiate their status.

Prerequisites

  • A VRRP group has been created using the vrrp vrid virtual-ip command.
  • The VRRP version number of a device has been configured as 3 using the vrrp version 3 command.

Precautions

Only a VRRPv3-enabled device can be configured to send Advertisement packets of a specified version.

Example

# Configure a VRRPv3-enabled device to send only VRRPv2 Advertisement packets in the view of GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] vrrp version v3
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/1] ip address 10.1.1.1 24
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.1.1.111
[*HUAWEI-GigabitEthernet0/1/0] vrrp vrid 1 version-3 send-packet-mode v2-only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic