< Home

qinq stacking

Function

The qinq stacking command configures VLAN stacking on a sub-interface.

The undo qinq stacking command cancels the configuration.

By default, VLAN stacking is not configured on a sub-interface.

Format

qinq stacking vid vlan-id1 [ to vlan-id2 ] pe-vid vlan-id3

undo qinq stacking vid vlan-id1 [ to vlan-id2 ] pe-vid vlan-id3

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this configuration.

Parameters

Parameter

Description

Value

vid vlan-id1 [ to vlan-id2 ]

Specifies the outer VLAN ID range.
  • vlan-id1 specifies the start VLAN ID.
  • tovlan-id2 specifies the end VLAN ID. The vlan-id1 and vlan-id2 id value of vlan-id2 must be greater than or equal to the value of vlan-id1entify a VLAN range.

The value of vlan-id1 is an integer that ranges from 2 to 4094.

The value of vlan-id2 is an integer that ranges from 2 to 4094.

pe-vid vlan-id3

Specifies the outer VLAN tags added to a frame.

The value is an integer that ranges from 1 to 4094.

Views

GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, VE sub-interface view, Eth-Trunk sub-interface view, MultiGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

The qinq stacking command adds an outer VLAN tag to the packets on a sub-interface.

The original VLAN IDs specified for QinQ mapping on a sub-interface cannot be globally created or displayed by display commands.

VLAN mapping or VLAN stacking cannot be configured for the same VLAN on the main interface and its sub-interfaces.

Example

# Configure VLAN stacking on XGigabitEthernet0/0/1.1 and add an outer VLAN tag 100 to frames with the inner VLAN tags 10 to 13.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-XGigabitEthernet0/0/1] quit
[HUAWEI] interface xgigabitethernet 0/0/1.1
[HUAWEI-XGigabitEthernet0/0/1.1] qinq stacking vid 10 to 13 pe-vid 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >