dot1q vrrp

Function

The dot1q vrrp command enables a sub-interface for dot1q VLAN tag termination on a VRRP device to send VRRP packets to specified VLANs.

The undo dot1q vrrp command restores the default setting.

A sub-interface for dot1q VLAN tag termination sends VRRP packets carrying only the minimal inner VLAN ID.

Format

dot1q vrrp vid vid

undo dot1q vrrp

Parameters

Parameter Description Value
vid vid

Specifies a VLAN ID.

The value is an integer ranging from 1 to 4094.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

If VRRP is enabled on a sub-interface for dot1q VLAN tag termination, VRRP packets need to be encapsulated with inner and outer VLAN tags before being transmitted between VLANs on VRRP devices. The dot1q vrrp command enables the sub-interface for dot1q VLAN tag termination to add VLAN tags to VRRP packets or remove VLAN tags from VRRP packets.

Prerequisites

The control-vid and dot1q termination vid commands have been run on the sub-interface for QinQ VLAN tag termination.

Precautions

If both VRRP and static ARP are configured on a sub-interface for dot1q or QinQ VLAN tag termination or a VLANIF interface, the VRRP virtual address and the IP address mapped to the static ARP entry must be different.

Otherwise, the device generates incorrect host routes, affecting traffic forwarding.

Example

# Configure VRRP-enabled GE 0/1/1.1 to send VRRP packets with a VLAN ID of 100.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit
[*HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] control-vid 2 dot1q-termination
[*HUAWEI-GigabitEthernet0/1/1.1] dot1q termination vid 100
[*HUAWEI-GigabitEthernet0/1/1.1] dot1q vrrp vid 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >