NOTE
Sub-interfaces can only be created on Layer 3 Ethernet interfaces. If an interface works in Layer
2 mode and supports switching between Layer 2 and Layer 3 modes, run the
undo
portswitch
command to switch the interface in Layer 3 mode before creating a sub-interface
on the interface.
5.
Run:
bridge
bridge-id
The Ethernet sub-interface is added to the bridge group.
6.
Run:
bridge vlan-transmit enable
The interface is enabled to transparently transmit VLAN IDs.
7.
Run:
vlan allow-pass
{
vid
vlan-id1
[
to
vlan-id2
] |
default
}
The VLAN allowed by the Ethernet sub-interface is configured.
NOTE
VLANs allowed by all sub-interfaces of a main interface cannot overlap.
The
vlan allow-pass default
command can be executed only on a sub-interface among all sub-
interfaces of each main interface. Packets are forwarded through the default sub-interface when the
packets do not match other QinQ or VLAN mapping entries on a sub-interface.
8.
Run:
vlan stacking
8021p
8021p-value1
pe-vid
pe-vid
[
remark-8021p
8021p-
value2
]
802.1p priority-based selective QinQ is configured.
----End
4.6.2 Configuring the TPID Value in an Outer VLAN Tag
To enable interoperation between devices from different vendors, set the same TPID value in
outer VLAN tags on the devices.
Context
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 industrial switch
router supports TPID value configuration. You can set the TPID value on the industrial switch
router to be the same as the TPID value in the network plan to ensure compatibility with the
current network.
NOTE
l
To implement interoperability with a non-Huawei device, ensure that the protocol type in the outer
VLAN tag added by the industrial switch router can be identified by the non-Huawei device.
l
The
qinq protocol
command identifies incoming packets, and adds or changes the TPID value of
outgoing packets.
l
The protocol ID configured on an interface by the
qinq protocol
command must be different from
other commonly used protocol IDs; otherwise, the interface cannot distinguish packets of these
protocols. For example,
protocol-id
cannot be set to 0x0806, which is the ARP protocol ID.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
4 QinQ Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
133