Configuring Basic QinQ
Basic QinQ enables the device to add a public tag to incoming packets so that user packets can be forwarded on the public network.
Background
To separate private networks from public networks and conserve VLAN resources, configure double 802.1Q tags on QinQ interfaces of the device. Private VLAN tags are used on private networks such as enterprise networks, and public VLAN tags are used on external networks such as ISP networks. QinQ expands VLAN space to 4094x4094 and allows packets on different private networks with the same VLAN IDs to be transparently transmitted.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
vlan vlan-id
A VLAN used on the public network is created.
- Run:
quit
Exit from the VLAN view.
- Run:
interface interface-type interface-number
The interface view is displayed.
The interface can be a physical interface or an Eth-Trunk interface.
- Run:
port link-type dot1q-tunnel
The link type of the interface is set to Dot1q-tunnel.
By default, the LNP negotiation mode of an interface is negotiation-desirable.
Dot1q-tunnel interfaces do not support Layer 2 multicast.
- Run:
port default vlan vlan-id
The VLAN ID of the public VLAN tag, that is, the default VLAN of the interface, is configured.
By default, VLAN 1 is the default VLAN of all interfaces.