No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
QinQ Configuration Commands

QinQ Configuration Commands

port vlan-stacking

Function

The port vlan-stacking command configures VLAN stacking. VLAN stacking adds a VLAN tag to a received packet that has a VLAN tag.

The undo port vlan-stacking command cancels VLAN stacking.

By default, VLAN stacking is not configured on an interface.

NOTE:

CE6880EI does not support this command.

Format

port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] stack-vlan vlan-id3 [ remark-8021p 8021p-value ]

undo port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] [ stack-vlan vlan-id3 ]

Parameters

Parameter

Description

Value

vlan vlan-id1 [ to vlan-id2 ]

Specifies the VLAN ID of a received tagged frame.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than the value of vlan-id1. vlan-id1 and vlan-id2 identify a range of VLANs.

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

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

stack-vlan vlan-id3

specifies the VLAN ID in the stacked outer tag.

The value is an integer that ranges from 1 to 4094. The VLAN cannot be the reserved VLAN configured by the vlan reserved command.

remark-8021p 8021p-value Specifies the 802.1p priority in the stacked outer tag.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority.

Views

GE interface view, 10GE interface view,25GE interface view,40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VLAN stacking, also called selective QinQ, is a Layer 2 technology that encapsulates outer VLAN tags according to different VLANs.

VLAN stacking adds outer tags to user packets according to VLAN IDs in user packets to differentiate users.

The VLAN stacking interface has the following features:

  • The VLAN stacking interface can be configured with multiple outer VLAN tags so that it can add different outer VLAN tags to different VLAN frames.

Prerequisites

Selective QinQ can only be enabled on hybrid or trunk interfaces in the inbound direction.

Precautions

  • The outer VLAN ID must exist and the interface must be added to the outer VLAN in untagged mode.

  • The MUX VLAN and VLAN ID-based selective QinQ cannot be configured on the same interface.

  • The CE6870EI switch as a whole supports selective QinQ for a maximum of 32 VLAN ranges. For other models, selective QinQ for a maximum of 8 VLAN ranges is supported on each interface.
  • The original VLAN specified in the port vlan-stacking command cannot be the same as the outer VLAN configured on a QinQ Layer 2 sub-interface.

  • If forwarding resources exceed the specifications, VLAN stacking can be configured. However, after the device restarts, the invalid VLAN stacking configuration may become valid and valid VLAN stacking configuration may become invalid.

  • If the port vlan-stacking command has been executed at least three times with specified VLAN ranges and VLAN ranges are combined twice at least, the configuration of each command must be committed. Otherwise, packets may be lost. For example, when port vlan-stacking vlan 31 to 60 stack-vlan 100, port vlan-stacking vlan 20 to 30 stack-vlan 100, and port vlan-stacking vlan 61 to 70 stack-vlan 100 commands are used, VLAN ranges 20 to 60 and 20 to 70 are combined twice. Therefore, commit the configuration of each command.

Example

# On 10GE1/0/1, configure VLAN stacking and add VLAN 100 in the outer tag to the tagged frame with the VLAN range of 10 to 13.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid untagged vlan 100
[*HUAWEI-10GE1/0/1] port vlan-stacking vlan 10 to 13 stack-vlan 100
Related Topics

qinq protocol

Function

The qinq protocol command sets the TPID value in the outer VLAN tag of an interface.

The undo qinq protocol command restores the default TPID value in the outer VLAN tag.

By default, the TPID value in the outer VLAN tag is 0x8100.

Format

qinq protocol protocol-id

undo qinq protocol

Parameters

Parameter

Description

Value

protocol-id

Specifies the TPID value in the outer VLAN tag.

The value can be 0x8100, 0x9100, or 0x88a8.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement interworking between QinQ-capable devices of different vendors, devices of different vendors use 0x8100 as the inner TPID value but may use different values for the outer TPID. To implement interoperation between these devices, run the qinq protocol command to configure the EtherType value in the outer tag.

Precautions

The device directly connected to an interface must be able to identify the TPID value in the outer VLAN tag on the interface.

This command can only be used on Layer 2 Ethernet interfaces.

The qinq protocol command identifies incoming frames, and adds or changes the TPID value of outgoing frames.

Example

# Set the TPID value in the outer VLAN tag of a QinQ frame to 0x9100 on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge1/0/1
[~HUAWEI-10GE1/0/1] qinq protocol 9100
Related Topics

vlan-stacking

Function

The vlan-stacking command configures an action of adding the outer VLAN tag in a traffic behavior.

The undo vlan-stacking command deletes the action of adding the outer VLAN tag in a traffic behavior.

By default, the action of adding the outer VLAN tag is not configured in a traffic behavior.

NOTE:

Only the CE6870EI does not support this command.

Format

vlan-stacking vlan vlan-id

undo vlan-stacking vlan

Parameters

Parameter

Description

Value

vlan vlan-id

Specifies the VLAN ID in the outer tag of a VLAN packet.

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

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To allow user packets to be transmitted on the backbone network, configure the device to add a VLAN tag supported by the backbone network to the user packets before the user packets enter the backbone network. The vlan-stacking command adds the outer VLAN tag based on services or users.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing the action of adding an outer VLAN tag.

Precautions

  • vlan-stacking can be configured together with only deny, permit, mac-address learning disable, and remark 8021p in the same traffic behavior in the inbound direction.

  • A traffic policy containing vlan-stacking cannot be applied to the outbound direction.

  • If you run the vlan-stacking command in the same traffic behavior view multiple times, only the latest configuration takes effect.

Example

# Configure an action of adding outer VLAN 100 in a traffic behavior.

<HUAWEI> system-view
[~HUAWEI] traffic behavior tb
[*HUAWEI-behavior-tb] vlan-stacking vlan 100
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52444

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next