vrrp vrid peer-ip

Function

The vrrp vrid peer-ip command enables unicast VRRP, creates a unicast VRRP group, and specifies a peer IP address and a source IP for this group.

The undo vrrp vrid command disables unicast VRRP and deletes a created unicast VRRP group.

By default, unicast VRRP is disabled and no unicast VRRP group is created on a device.

Format

vrrp vrid virtual-router-id peer-ip ip-address [ source-ip source-ip-value ]

undo vrrp vrid virtual-router-id

Parameters

Parameter Description Value
peer-ip ip-address

Specifies a peer IP address for a unicast VRRP group.

The value is in dotted decimal notation.

source-ip source-ip-value

Specifies a source IP address for a unicast VRRP group.

The value is in dotted decimal notation.

vrid virtual-router-id

Specifies an ID for a unicast VRRP group.

The value is an integer ranging from 1 to 255.

Views

Loopback interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

Common VRRP is multicast VRRP and only allows VRRP Advertisement packets to be multicast. Multicast VRRP Advertisement packets, however, can be forwarded within only one broadcast domain (for example, one VLAN or VSI). Therefore, common VRRP groups apply only to Layer 2 networks. This limitation means that common VRRP does not apply to devices on a Layer 3 network that need to negotiate their master/backup status using VRRP.

You can configure a unicast VRRP group to meet this requirement. Unicast VRRP is a Huawei proprietary protocol based on VRRPv2. After a unicast VRRP group is configured on two devices on a Layer 3 network, the master device in this group sends unicast VRRP Advertisement packets to the backup device through the Layer 3 network, implementing the master/backup status negotiation between the two devices.

Configuration Impact

After a unicast VRRP group is configured, this group cannot be changed to a common VRRP group.

Precautions

  • It is recommended to configure the source IP address. Otherwise, the device will listen to all packets of the configured port, which may cause security risks.
  • The peer IP address and source IP address cannot be the same.

Example

# Enable unicast VRRP.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[~HUAWEI-LoopBack1] vrrp vrid 1 peer-ip 1.1.1.1 source-ip 1.1.1.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >