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

AR500, AR510, and AR530 V200R007 Commands Reference

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

NOTE:

AR530 series (except AR531GPe-U-H) do not support QinQ on a sub-interface.

ce-vlan ignore

Function

The ce-vlan ignore command enables a Dot1q termination sub-interface on an L2VPN network to ignore the inner tag in a QinQ packet and terminate the outer tag.

The undo ce-vlan ignore command disables a Dot1q termination sub-interface on an L2VPN network from forwarding QinQ packets.

By default, a Dot1q termination sub-interface on an L2VPN network discards QinQ packets.

NOTE:

The AR503GW-LM7, AR503GW-LcM7, AR509G-L-D-H, and AR509GW-L-D-H do not support this command.

Format

ce-vlan ignore

undo ce-vlan ignore

Parameters

None

Views

Ethernet sub-interface view, GE sub-interface view, XGE sub-interface view, Eth-Trunk sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When users communicate over an L2VPN (including VLL), a Dot1q termination sub-interface processes only single-tagged Dot1q packets and discards double-tagged QinQ packets.

When VLANs are assigned on a VPN and CEs connect to the ISP network through PEs, whether user packets carry VLAN tags and types of VLAN tags are unknown. After a CE interface connected to a PE adds the outer VLAN tag allocated by the ISP to user packets, the Dot1q termination sub-interface on the PE interface connected to the CE receives both Dot1q and QinQ packets. By default, a Dot1q termination sub-interface cannot forward QinQ packets. You need to configure the Dot1q termination sub-interface to ignore the inner tag in QinQ packets and terminate the outer tag so that the Dot1q termination sub-interface can forward QinQ packets.

When a Dot1q sub-interface functions as the ingress or egress of a Martini VLL, run this command to implement transparent transmission of user packets over the ISP network.

Figure 5-1  Networking diagram of connecting the Dot1q termination sub-interface to the VLL

Prerequisites

  • The encapsulation mode of the sub-interface has been set to Dot1q termination by running the dot1q termination vid command in the sub-interface view.

  • L2VPN (including VLL) has been deployed.

    For details on how to configure VLL, see "VLL Configuration" in the AR Configuration Guide - VPN.

Precautions

When the L2VPN configuration is deleted, the ce-vlan ignore command on the sub-interface is also deleted.

Example

# On PE1, enable the Dot1q termination sub-interface GE0/0/1.1 connected to the VLL to ignore the inner tag in a QinQ packet and terminate the outer tag.

<Huawei> system-view
[Huawei] mpls lsr-id 10.1.1.9
[Huawei] mpls
[Huawei-mpls] quit
[Huawei] mpls l2vpn
[Huawei-l2vpn] quit
[Huawei] interface gigabitethernet0/0/1.1
[Huawei-GigabitEthernet0/0/1.1] dot1q termination vid 10
[Huawei-GigabitEthernet0/0/1.1] mpls l2vc 10.3.3.9 101
[Huawei-GigabitEthernet0/0/1.1] ce-vlan ignore
Related Topics

qinq termination l2

Function

The qinq termination l2 command configures the mode in which a sub-interface for QinQ VLAN tag termination connects to a VLL network.

The undo qinq termination l2 command deletes the mode configured for a sub-interface for QinQ VLAN tag termination in which the sub-interface connects to a VLL network.

By default, a sub-interface for QinQ VLAN tag termination connects to a VLL network in asymmetry mode.

Format

qinq termination l2 { symmetry | asymmetry }

undo qinq termination l2

Parameters

Parameter Description Value
symmetry

Configures the sub-interface for QinQ VLAN tag termination to connect to a VLL network in symmetry mode.

-
asymmetry

Configures the sub-interface for QinQ VLAN tag termination to connect to a VLL network in asymmetry mode.

In asymmetry mode, a sub-interface does not send inner tags as part of data to the peer. Inner tags cannot be used to identify users, and therefore cannot be specified with a range of VLAN IDs.

NOTE:

Generally, of the two tags carried by a packet sent by a Huawei device, the inner tag specifies the user, and the outer tag specifies the service.

-

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

More QinQ encapsulation and termination modes are provided to differentiate users and services and save VLAN resources. These modes are widely used for refined operation.

If users communicate over an L2VPN (a VLL network), you can run the qinq termination l2 command on the sub-interfaces for QinQ VLAN tag termination of L2VPN edge devices to configure the mode in which the sub-interfaces connect to the L2VPN.

Prerequisites

The following configurations are required before the qinq termination l2 command is used on a sub-interface:
  • The encapsulation type of the sub-interface is set to QinQ termination.

    The qinq termination pe-vid ce-vid command is used in the sub-interface view to set the encapsulation type of the sub-interface to QinQ termination.

  • A VLL network is deployed.

    For VLL configurations, see the chapter "VLL Configuration" in the AR Configuration Guide - VPN.

Configuration Impact

  • If the qinq termination l2 symmetry command is used on a sub-interface for QinQ VLAN tag termination, the sub-interface connects to the L2VPN in symmetry mode. MAC address learning is performed only for outer tags carried in packets. The sub-interface sends inner tags as part of data to the peer.

  • If the qinq termination l2 asymmetry command is used on a sub-interface for QinQ VLAN tag termination, the sub-interface connects to the L2VPN in asymmetry mode. MAC address learning is performed for both inner and outer tags carried in packets. The sub-interface does not send inner tags as part of data to the peer.

The edge device on an L2VPN searches the MAC address table based on the destination MAC address carried in a packet to obtain the outbound interface. Then, the device encapsulates the packet based on the mode in which its sub-interface connects to the L2VPN. Table 5-32 and Table 5-33 show the modes in which a sub-interface connects to an L2VPN.

Table 5-32  Packet processing on an inbound interface

Inbound Interface Type

VLL

Ethernet Encapsulation

VLAN Encapsulation

Symmetry mode

Removes the outer tag.

Keeps both inner and outer tags unchanged.

Asymmetry mode

Removes both the inner and outer tags.

Removes both inner and outer tags, and then adds another tag.

Table 5-33  Packet processing on an outbound interface

Outbound Interface Type

VLL

Ethernet Encapsulation

VLAN Encapsulation

Symmetry mode

Adds an outer tag.

Replaces the outer tag.

Asymmetry mode

Adds two tags.

Remove the existing tag, and then add two tags.

Example

# Configure the sub-interface for QinQ VLAN tag termination GE1/0/0.2 to connect to an L2VPN in asymmetry mode.

[Huawei] interface gigabitethernet1/0/0.2
[Huawei-GigabitEthernet1/0/0.2] qinq termination l2 asymmetry
[Huawei-GigabitEthernet1/0/0.2] qinq termination pe-vid 1 ce-vid 1

qinq termination pe-vid ce-vid

Function

The qinq termination pe-vid ce-vid command configures QinQ termination on a sub-interface.

The undo qinq termination pe-vid ce-vid command cancels QinQ termination on a sub-interface.

By default, QinQ termination is disabled on a sub-interface.

Format

qinq termination pe-vid pe-vid ce-vid ce-vid

undo qinq termination pe-vid pe-vid ce-vid ce-vid

Parameters

Parameter

Description

Value

pe-vid pe-vid

Specifies the outer VLAN ID.

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

ce-vid ce-vid

Specifies the inner VLAN ID.

The value of ce-vid is an integer that ranges from 1 to 4094.

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • Communication between VLANs

    The VLAN technology is widely used because it helps Layer 2 packets of different users to be separately transmitted. With the VLAN technology, a physical LAN is divided into multiple logical broadcast domains, that is, VLANs. In this manner, hosts in a VLAN can communicate with each other, but hosts in different VLANs cannot communicate at Layer 2. The Layer 3 routing technology is required for communication of hosts in different VLANs.

  • Communication between a LAN and a WAN

    Most packets on a LAN have VLAN tags, but some WAN protocols such as PPP, cannot identify VLAN packets. To send a VLAN packet from LAN to WAN, the device records VLAN information in the packet, removes the VLAN tag, and forwards the packet.

Based on the number of tags, VLAN packets can be classified into Dot1q packets and QinQ packets. A Dot1q packet carries a single-layer VLAN tag and a QinQ packet carries a double-layer VLAN tag. Accordingly, there are two VLAN tag termination modes:
  • Dot1q termination, which terminates tags carried in Dot1q packets

    To configure Dot1q termination, run the dot1q termination vid command in the sub-interface view.

  • QinQ termination, which terminates tags carried in QinQ packets.

    To configure Dot1q termination, run the qinq termination pe-vid ce-vid command.

After the qinq termination pe-vid ce-vid command is run, the sub-interface for VLAN tag termination processes the packet in the following procedures:
  • The sub-interface removes the tag in the VLAN packet when receiving the packet and forwards the packet on Layer 3. Whether the forwarded VLAN packet carries tags is determined by the outbound interface.
  • The sub-interface adds VLAN information to the packet and then sends the packet.
NOTE:

Batch VLAN termination applies to the Terminal access scenario only.

Precautions

The MTU of a sub-interface must be at least 4 bytes smaller than the MTU of its primary interface. Especially, the MTU of a QinQ sub-interface must be at least 8 bytes smaller than the MTU of its primary interface.

Ethernet sub-interfaces of VDSL interfaces in PTM mode do not support QinQ commands.

Configuration Impact

After you run this command to enable batch VLAN termination on a sub-interface, the sub-interface can only connect to an L2VPN but cannot be used for Layer 3 forwarding.

Example

# Set the encapsulation mode on Ethernet0/0/1.1 to QinQ and allow the packets with the outer VLAN tag 100 and inner VLAN tag 200 to pass through.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1.1
[Huawei-Ethernet0/0/1.1] qinq termination pe-vid 100 ce-vid 200
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 is a 4-digit hexadecimal integer that ranges from 0x0600 to 0xFFFF. The default TPID value is 0x8100.

Views

Ethernet interface view, GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Devices from different vendors or in different network plans may use different TPID values in VLAN tags of VLAN packets. To adapt to an existing network plan, the device supports TPID value configuration. You can set the TPID value on the device to be the same as the TPID value in the network plan to ensure compatibility with the current network.

Precautions

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

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

The TPID value specified by the qinq protocol command must be different from TPID values of specific protocols. Otherwise, the interface cannot correctly classify protocol packets. The TPID value cannot be any of the values in the following table.

Table 5-34  Description of protocol types and values

Protocol Type

Value

ARP

0x0806

RARP

0x8035

IP

0x0800

IPv6

0x86DD

PPPoE

0x8863/0x8864

MPLS

0x8847/0x8848

IPX/SPX

0x8137

LACP

0x8809

802.1x

0x888E

HGMP

0x88A7

Reserved

0xFFFD/0xFFFE/0xFFFF

Example

# Set the TPID value in the outer VLAN tag of QinQ frames to 0x9100 on GE0/0/0.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/0
[Huawei-GigabitEthernet0/0/0] qinq protocol 9100

termination-vid batch enable

Function

The termination-vid batch enable command enables a sub-interface to batch terminate VLAN tags.

The undo termination-vid batch enable command disables a sub-interface from batch terminating VLAN tags.

By default, a sub-interface is enabled to batch terminate VLAN tags.

NOTE:

AR503GW-LM7, AR503GW-LcM7, AR509G-L-D-H, AR509GW-L-D-H and AR510 series do not support this command.

Format

termination-vid batch enable

undo termination-vid batch enable

Parameters

None

Views

Ethernet sub-interface view, GE sub-interface view, XGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a scenario where the device functions as the Terminal access and downstream users of the Terminal access belong to different VLANs, packets from each VLAN need to be terminated.

You can run this command to enable a sub-interface to batch terminate VLAN tags and run the dot1q termination vid or qinq termination pe-vid ce-vid command to specify multiple VLANs for termination.

NOTE:

This command can be only executed on the Terminal access.

Precautions

If VLANs for termination have been configured on a sub-interface, run the undo dot1q termination vid or undo qinq termination pe-vid ce-vid command to cancel the configuration.

Example

# Enable Eth2/0/0.1 to batch terminate VLAN tags.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1.1
[Huawei-Ethernet0/0/1.1] termination-vid batch enable
Info: This command applies to only Terminal access scenarios.

vlan allow-pass

Function

The vlan allow-pass command configures a VLAN allowed by a sub-interface.

The undo vlan allow-pass command cancels the configuration.

By default, no allowed VLAN is configured on a sub-interface.

NOTE:

The AR503GW-LM7, AR503GW-LcM7, AR509G-L-D-H, AR509GW-L-D-H, and AR510 series support this command.

Format

vlan allow-pass { vid vlan-id1 [ to vlan-id2 ] | default }

undo vlan allow-pass { vid vlan-id1 [ to vlan-id2 ] | default }

Parameters

Parameter

Description

Value

vid vlan-id1 [ to vlan-id2 ]

Specifies VLANs from which packets are allowed to pass through.
  • vlan-id1 specifies the start VLAN ID.
  • vlan-id2 specifies the end VLAN ID.

vlan-id1 and vlan-id2 are integers that range from 1 to 4094. vlan-id2 must be greater than vlan-id1. vlan-id2 and vlan-id1 specify a range of VLANs.

default

Indicates that packets are forwarded through the default sub-interface when the packets do not match other QinQ or VLAN mapping entries on a sub-interface.

-

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before configuring other QinQ functions except VLAN-ID-based VLAN Stacking, run the vlan allow-pass { vid vlan-id1 [ to vlan-id2 ] | default } command to configure the VLAN allowed by a sub-interface.

Prerequisites

The sub-interface has been added to a bridge group.

Precautions

When you run the vlan allow-pass command on a sub-interface multiple times, multiple VLANs are specified.

Both VLAN stacking and VLAN allow-pass can configure VLANs allowed by sub-interfaces. The VLANs allowed by all sub-interfaces of a main interface cannot overlap.

Example

# Configure GE0/0/0.1 to allow VLANs 10 to 30.

<Huawei> system-view
[Huawei] bridge 1
[Huawei-bridge1] quit
[Huawei] interface gigabitethernet 0/0/0.1
[Huawei-GigabitEthernet0/0/0.1] bridge 1
[Huawei-GigabitEthernet0/0/0.1] bridge vlan-transmit enable
[Huawei-GigabitEthernet0/0/0.1] vlan allow-pass vid 10 to 30

vlan dot1q-tunnel(Sub-interface)

Function

The vlan dot1q-tunnel command configures the dotlq tunnel function on a sub-interface.

The undo vlan dot1q-tunnel command cancels the dotlq tunnel function on a sub-interface.

By default, the dotlq tunnel function is disabled on a sub-interface.

NOTE:

AR503GW-LM7, AR503GW-LcM7, AR509G-L-D-H, AR509GW-L-D-H, and AR510 series do not support this command.

Format

vlan dot1q-tunnel tunnel-vlan-id [ native vid native-vlan-id ]

undo vlan dot1q-tunnel

Parameters

Parameter

Description

Value

tunnel-vlan-id

Specifies the VLAN ID in the (outer) VLAN tag to be added to a packet.

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

native vid native-vlan-id

Specifies the VLAN ID in the inner VLAN tag to be added to the received untagged VLAN packets.

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

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Dot1q tunnel isolates a carrier network from a user network and is widely used when users connect to a carrier network. When private networks connect to a carrier network through CEs and PEs, run the vlan dot1q-tunnel command on CE interfaces connected to PEs so that the CE interfaces add the outer VLAN tag allocated by the carrier to user packets. This implementation saves VLAN IDs and allows user packets to be transparently transmitted on the carrier network.

After the vlan dot1q-tunnel command is used, a packet sent from the CE to the PE is processed as follows:
  • If the packet carries a tag, the CE adds the outer VLAN tag (tunnel tag) specified by tunnel-vlan-id to the packet.
  • If the packet does not carry any tag, the CE adds the inner VLAN tag (native tag) specified by native-vlan-id and the outer VLAN tag specified by tunnel-vlan-id to the packet.
A packet sent from the PE to the CE is processed as follows:
  • If the outer VLAN ID of the packet is the same as the tunnel tag specified by tunnel-vlan-id but the inner VLAN ID differs from the inner VLAN tag specified by native-vlan-id, the CE removes the outer VLAN tag.
  • If the outer VLAN ID of the packet is the same as the tunnel tag specified by tunnel-vlan-id and the inner VLAN ID is the same as the inner VLAN tag specified by native-vlan-id, the CE removes both the inner and outer VLAN tags.

Prerequisites

The sub-interface has been added to a bridge group and the VLANs allowed by the sub-interface has been configured using the vlan allow-pass command.

The VLANs allowed by the sub-interface include user VLANs and the VLAN specified by tunnel-vlan-id.

Precautions

The vlan dot1q-tunnel command can be only executed at one time on a sub-interface and the VLAN specified by tunnel-vlan-id must be allowed by the sub-interface.

You can configure only dot1q tunnel function, vlan stacking, or vlan mapping on a sub-interface.

Example

# User packets contain packets with VLAN 30 and untagged packets. Enable the dotlq tunnel function on GE0/0/0.1. When received packets carry VLAN tags, the outer VLAN tag with VLAN 10 is added to the packets. When received packets are untagged packets, the inner VLAN tag with VLAN 20 and the outer VLAN tag with VLAN 10 are added to the packets.

<Huawei> system-view
[Huawei] bridge 1
[Huawei-bridge1] quit
[Huawei] interface gigabitethernet 0/0/0.1
[Huawei-GigabitEthernet0/0/0.1] bridge 1
[Huawei-GigabitEthernet0/0/0.1] bridge vlan-transmit enable
[Huawei-GigabitEthernet0/0/0.1] vlan allow-pass vid 10
[Huawei-GigabitEthernet0/0/0.1] vlan allow-pass vid 30
[Huawei-GigabitEthernet0/0/0.1] vlan dot1q-tunnel 10 native vid 20

vlan stacking(Sub-interface)

Function

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

The undo vlan stacking command cancels VLAN stacking on a sub-interface.

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

NOTE:

AR503GW-LM7, AR503GW-LcM7, AR509G-L-D-H, AR509GW-L-D-H, and AR510 series do not support this command.

Format

vlan stacking { default | vid low-ce-vid [ to high-ce-vid ] } pe-vid pe-vid [ remark-8021p 8021p-value2 ]

vlan stacking 8021p 8021p-value1 pe-vid pe-vid [ remark-8021p 8021p-value2 ]

undo vlan stacking { default | vid low-ce-vid [ to high-ce-vid ] | 8021p 8021p-value1 }

Parameters

Parameter

Description

Value

default

Indicates that packets are forwarded through the default sub-interface when the packets do not match other VLAN stacking entries on a sub-interface.

-

vid low-ce-vid [ to high-ce-vid ]

Specifies VLANs from which packets are allowed to pass through.
  • low-ce-vid specifies the start VLAN ID.
  • high-ce-vid specifies the end VLAN ID.

low-ce-vid and high-ce-vid are integers that range from 1 to 4094. high-ce-vid must be greater than low-ce-vid. high-ce-vid and low-ce-vid specify a range of VLANs.

pe-vid pe-vid

Specifies the VLAN ID in the outer S-VLAN tag. The outer VLAN tag is added to packets matching default, vid low-ce-vid [ to high-ce-vid ], or 8021p 8021p-value1.

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

remark-8021p 8021p-value2

Specifies the re-marked 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. By default, the 802.1p priority in the stacked outer VLAN tag is the same as the 802.1p priority in the inner VLAN tag.

8021p 8021p-value1

Specifies the 802.1p priority in a VLAN frame. The 802.1p priority is represented by a three-bit PRI (priority) field in an 802.1Q frame, and is used when high-priority packets need to be first forwarded.

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

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When private networks connect to a carrier network through CEs and PEs, run the vlan stacking command on CE interfaces connected to PEs so that the CE interfaces add the outer VLAN tag allocated by the carrier to user packets. This implementation saves VLAN IDs and allows user packets to be transparently transmitted on the carrier network.

An 802.1p priority indicates a packet priority. Generally, different services of a user use different priorities. A carrier can establish different data transmission networks for different services based on 802.1p priorities so that services on the carrier network can be differentiated.

Unlike the vlan dot1q-tunnel used to add outer VLAN tags based on interfaces, the vlan stacking command adds outer VLAN tags based on 802.1p priorities or VLAN IDs. VLAN stacking is also called selective QinQ.

After the vlan stacking command is used, packets are processed as follows:
  • After the vlan stacking 8021p 8021p-value1 pe-vid pe-vid [ remark-8021p 8021p-value2 ] command is used on an interface, the VLAN tag specified by pe-vid is added to packets with the 802.1p priority specified by 8021p-value1 and the 802.1p priority specified by 8021p-value2 in the stacked tag can be modified.
  • After the vlan stacking vid low-ce-vid [ to high-ce-vid ] pe-vid pe-vid [ remark-8021p 8021p-value2 ] command is used on an interface, packets with VLAN IDs specified by low-ce-vid [ to high-ce-vid ] are allowed to pass through, the outer S-VLAN tag specified by pe-vid can be added to packets, and the 802.1p priority specified by 8021p-value2 in the stacked tag can be modified.
  • After the vlan stacking default pe-vid pe-vid [ remark-8021p 8021p-value2 ] command is used on an interface, packets that do not match other VLAN stacking entries on the interface are forwarded by the default sub-interface, the outer S-VLAN tag specified by pe-vid can be added to packets, and the 802.1p priority specified by 8021p-value2 in the stacked tag can be modified.
The outer VLAN tag of packets are removed before the packets are sent.

Prerequisites

The sub-interface has been added to a bridge group.

Precautions

You can run this command multiple times on each sub-interface:
  • When you run the vlan stacking vid low-ce-vid [ to high-ce-vid ] pe-vid pe-vid [ remark-8021p 8021p-value2 ] command multiple times to configure VLAN ID-based VLAN stacking, ensure that values of pe-vid are the same and values of remark-8021p 8021p-value2 are the same.
  • When you run the vlan stacking 8021p 8021p-value1 pe-vid pe-vid [ remark-8021p 8021p-value2 ] command multiple times to configure 802.1p priority-based VLAN stacking, values of both pe-vid and remark-8021p 8021p-value2 can be different.

The vlan stacking default command can be executed only on a sub-interface among all sub-interfaces of each main interface.

You can configure only dot1q tunnel function, vlan stacking, or vlan mapping on a sub-interface.

When canceling VLAN stacking on a sub-interface, the VLAN range should be totally the same as configuring VLAN stacking.

Both VLAN stacking and VLAN allow-pass can configure VLANs allowed by sub-interfaces. The VLANs allowed by all sub-interfaces of a main interface cannot overlap.

Example

# Configure VLAN stacking on GE0/0/0.1. When received packets use the VLAN tag with VLAN IDs 10 to 13, outer VLAN 100 is added to the packet.

<Huawei> system-view
[Huawei] bridge 1
[Huawei-bridge1] quit
[Huawei] interface gigabitethernet 0/0/0.1
[Huawei-GigabitEthernet0/0/0.1] bridge 1
[Huawei-GigabitEthernet0/0/0.1] bridge vlan-transmit enable
[Huawei-GigabitEthernet0/0/0.1] vlan stacking vid 10 to 13 pe-vid 100
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 92514

Downloads: 126

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