R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide

159
Ambiguous QinQ termination—Terminates packets whose Layer 1 VLAN IDs match the specified
VLAN ID and Layer 2 VLAN IDs are in the specified range and does not allow any other
VLAN-tagged packets to pass through the subinterface. When the subinterface receives a packet,
it removes the two layers of VLAN tags of the packet. When the subinterface sends a packet, it tags
the packet with two layers of VLAN IDs, where the Layer 1 VLAN ID is the specified value and the
Layer 2 VLAN ID is determined as follows:
{ For a PPPoE packet, the Layer 2 VLAN ID is obtained by searching PPPoE session entries.
{ For a DHCP relay packet, the Layer 2 VLAN ID is obtained by searching DHCP relay entries.
Configuring unambiguous QinQ termination
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
Enter Layer 3 Ethernet subinterface
view:
interface interface-type
interface-number.subnumber
Enter Layer 3 aggregate subinterface
view:
interface route-aggregation
interface-number.subnumber
Use one of the commands.
3. Enable QinQ termination on
the subinterface, and
configure the subinterface to
terminate the VLAN-tagged
packets whose outermost two
layers of VLAN IDs match the
specified VLAN IDs.
vlan-type dot1q vid vlan-id
second-dot1q vlan-id
By default, QinQ termination
is not enabled.
Configuring ambiguous QinQ termination
When you configure ambiguous QinQ termination in this method, follow these guidelines:
If you specify the same Layer 1 VLAN ID for multiple subinterfaces under a main interface, you must
specify different Layer 2 VLAN IDs for them. However, if you specify different Layer 1 VLAN IDs for
the subinterfaces, you can specify either the same Layer 2 VLAN ID or different Layer 2 VLAN IDs
for them.
Subinterfaces under different main interfaces can terminate VLAN-tagged packets with the same
Layer 1 VLAN ID and Layer 2 VLAN IDs.
When you have configured the vlan-type dot1q vid command, if the currently-effective vlan-id value
is the same as the vlan-id value you are configuring now, the Layer 2 VLAN IDs you are configuring
now will take effect along with the currently-effective Layer 2 VLAN IDs. Otherwise, you must delete
the old configuration before configuring the new one.
To configure ambiguous QinQ termination:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A