vrrp advertise send-mode

Function

The vrrp advertise send-mode command configures a sending mode for VRRP Advertisement packets in a super VLAN.

The undo vrrp advertise send-mode command cancels the configuration.

By default, a super VLAN sends VRRP Advertisement packets only to a sub-VLAN with the smallest VLAN ID among all the sub-VLANs in the Up state.

Format

vrrp advertise send-mode sub-vlan-id

vrrp advertise send-mode all

undo vrrp advertise send-mode

Parameters

Parameter Description Value
sub-vlan-id

Specifies the ID of a sub-VLAN to which VRRP advertisement packets are sent.

The value is an integer ranging from 1 to 4094.

all

Enables VRRP Advertisement packets to be broadcast to all sub-VLANs.

-

Views

VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

If a VRRP group is configured on VLAN aggregation-enabled devices and VRRP Advertisement packets are transmitted to all sub-VLANs, a great deal of bandwidth resources are consumed. To improve bandwidth usage efficiency, enable VRRP Advertisement packets to be transmitted only to a specified sub-VLAN.

Prerequisites

A super VLAN and sub-VLANs have been configured.

A VRRP group has been configured on a VLANIF interface of a super VLAN.

Configuration Impact

The all parameter is not recommended. If the all parameter is specified, a super VLAN broadcasts a VRRP Advertisement packet to all its sub-VLANs, which affects CPU performance.

Precautions

If both VRRP and static ARP are configured on a device, note the following issues:

  • If VRRP is enabled on a VLANIF interface, a virtual IP address cannot be an IP address that maps to a MAC address in a static ARP entry. If a virtual IP address maps to a MAC address in a static ARP entry, a forwarding failure occurs. For example, if a MAC address in a static ARP entry on a VLANIF interface maps to an IP address of 10.1.1.1, the IP address of 10.1.1.1 cannot be the virtual IP address of a VRRP group configured on the VLANIF interface.
  • When a static ARP entry is configured on a VLANIF interface with a VRRP group configured, the virtual IP address of the VRRP group cannot be an IP address that maps to the MAC address in the static ARP entry. Otherwise, a forwarding failure occurs. For example, if a VRRP group on a VLANIF interface is assigned an IP address of 10.1.1.1, the IP address of 10.1.1.1 cannot map to a MAC address in a static ARP entry configured on the VLANIF interface.

Example

# Enable super VLAN 100 to send VRRP Advertisement packets to sub-VLAN 10.
<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] quit
[*HUAWEI] vlan 100
[*HUAWEI-vlan100] aggregate-vlan
[*HUAWEI-vlan100] access-vlan 10
[*HUAWEI-vlan100] quit
[*HUAWEI] interface vlanif 100
[*HUAWEI-Vlanif100] vrrp vrid 1 virtual-ip 10.10.10.10
[*HUAWEI-Vlanif100] vrrp advertise send-mode 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >