R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference
153
Default command level
2: System level
Parameters
vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a single VLAN ID
or a VLAN ID range in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094. The
ID for vlan-id2 must be equal to or greater than the ID for vlan-id1.
all: Specifies all VLANs.
Usage guidelines
When basic QinQ is enabled on a port, all packets passing through the port are tagged with the port's
PVID tag. You can exclude a VLAN (for example, the management VLAN) from the QinQ tagging action.
This VLAN is called a "transparent VLAN."
To ensure successful transmissions for a transparent VLAN, follow these configuration guidelines:
• Set the link type of the port to trunk or hybrid, and assign the port to the transparent VLAN.
• Make sure all ports on the traffic path permit the transparent VLAN to pass through.
• Do not configure VLAN mapping for the transparent VLAN on the port. For more information about
VLAN mapping, see "Configuring VLAN mapping."
You can use this command in the following views:
• In Layer 2 Ethernet interface view, the command takes effect on the port only.
• In Layer 2 aggregate interface view, the command takes effect on the Layer 2 aggregate interface
and all the member ports in the aggregation group.
• In port group view, the command takes effect on all ports in the port group.
Examples
# Enable basic QinQ on GigabitEthernet 4/0/1, and configure GigabitEthernet 4/0/1 to transparently
transmit frames from VLAN 2, VLAN 3, and VLAN 50 through VLAN 100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] port link-type trunk
[Sysname-GigabitEthernet4/0/1] port trunk permit vlan 2 3 50 to 100
[Sysname-GigabitEthernet4/0/1] qinq enable
[Sysname-GigabitEthernet4/0/1] qinq transparent-vlan 2 3 50 to 100