R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference
157
Layer 2 VLAN IDs specified by the any keyword, and another subinterface under the same interface is
configured with the vlan-type dot1q vid x second-dot1q vlan-list command. The any keyword specifies
all VLAN IDs between 1 and 4094 other than the Layer 2 VLAN IDs specified by the vlan-list argument.
vlan-list: Specifies a list of Layer 2 VLAN IDs in the format of vlan-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>,
where the vlan-id argument is in the range of 1 to 4094 and &<1-10> indicates that you can specify up
to 10 Layer 2 VLAN ID ranges.
Usage guidelines
Make sure any two subinterfaces under the same Ethernet interface cannot both terminate VLAN-tagged
packets carrying the same Layer 2 and Layer 1 VLAN IDs. After you configure the same Layer 1 VLAN
ID on two different subinterfaces under an Ethernet interface, make sure their Layer 2 VLAN ID ranges do
not overlap with each other.
After you use the undo vlan-type dot1q vid second-dot1q command to disable the subinterface from
terminating VLAN-tagged packets, the subinterface will restart, and the ARP table entry corresponding
to the subinterface will be removed.
Examples
# Enable QinQ termination on the Layer 3 Ethernet subinterfaces, and configure each subinterface to
terminate VLAN-tagged packets with the specified Layer 2 VLAN ID and Layer 1 VLAN ID.
• Configure GigabitEthernet 4/0/1.1 to terminate VLAN-tagged packets whose Layer 2 VLAN ID
and Layer 1 VLAN ID are both 100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1.1
[Sysname-GigabitEthernet4/0/1.1] vlan-type dot1q vid 100 second-dot1q 100
[Sysname-GigabitEthernet4/0/1.1] quit
• Configure GigabitEthernet 4/0/1.2 to terminate VLAN-tagged packets with Layer 1 VLAN ID 100
and Layer 2 VLAN IDs in the range of 200 to 300.
[Sysname] interface GigabitEthernet 4/0/1.2
[Sysname-GigabitEthernet4/0/1.2] vlan-type dot1q vid 100 second-dot1q 200 to 300
[Sysname-GigabitEthernet4/0/1.2] quit
• Configure GigabitEthernet 4/0/1.3 to terminate VLAN-tagged packets whose Layer 1 VLAN ID is
100 and Layer 2 VLAN ID is any value between 1 and 4094.
[Sysname] interface GigabitEthernet 4/0/1.3
[Sysname-GigabitEthernet4/0/1.3] vlan-type dot1q vid 100 second-dot1q any
[Sysname-GigabitEthernet4/0/1.3] quit
• Configure GigabitEthernet 4/0/1.4 to terminate VLAN-tagged packets whose Layer 1 VLAN ID is
100 and Layer 2 VLAN ID is in the range of 500 to 600.
[Sysname] interface GigabitEthernet 4/0/1.4
[Sysname-GigabitEthernet4/0/1.4] vlan-type dot1q vid 100 second-dot1q 500 to 600
[Sysname-GigabitEthernet4/0/1.4] quit
• Configure GigabitEthernet 4/0/1.5 to terminate VLAN-tagged packets whose Layer 1 VLAN ID is
200 and Layer 2 VLAN ID is in the range of 500 to 600.
[Sysname] interface GigabitEthernet 4/0/1.5
[Sysname-GigabitEthernet4/0/1.5] vlan-type dot1q vid 200 second-dot1q 500 to 600
The following table describes the results of the previous configuration: