Configuring Basic QinQ
Context
Basic QinQ enables the device to add a public tag to incoming packets so that user packets can be forwarded on the public network. To separate private networks from public networks and conserve VLAN resources, configure double 802.1Q tags on QinQ interfaces of the device. Inner VLAN tags are used on internal networks and outer VLAN tags are used on external networks. QinQ expands VLAN space to 4094x4094 VLANs 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 link type of an interface is access. 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.
- Run commit
The configuration is committed.