< Home

Configuring QinQ Stacking on a VLANIF Interface

Background

To log in to and manage a remote device from the local device, configure QinQ stacking on the VLANIF interface corresponding to the management VLAN on the remote device. As shown in Figure 1, SwitchA is connected to SwitchB through a third-party network. The management VLAN on SwitchB is the same as the VLAN for users connected to SwitchA and is different from the VLAN provided by the carrier.

Figure 1 Networking for QinQ stacking on a VLANIF interface

To log in to SwitchB from SwitchA, you can configure QinQ stacking on the VLANIF interface corresponding to the management VLAN on SwitchB.

  • Packets sent from SwitchA to SwitchB

    The user-side interface on SwitchA configured with QinQ sends double-tagged packets to the carrier network. The outer VLAN tag is the same as the VLAN tag provided by the carrier. This allows the packets to be transparently transmitted to SwitchB over the carrier network.

    When SwitchB receives a double-tagged packet, it compares the VLAN tag of the packet with the VLAN tag configured on the VLANIF interface. If they are the same, SwitchB removes the outer tag and the forward the packet to the IP layer for processing.

  • Packets sent from SwitchB to SwitchA

    When the VLANIF interface on SwitchB receives a data packet, SwitchB adds an outer VLAN tag to the packet according to the QinQ stacking configuration. The new outer VLAN tag is the same as the VLAN tag provided by the carrier. This allows the double-tagged data packet to be transparently transmitted to SwitchA over the carrier network. SwitchA removes the outer VLAN tag from the packet and forwards then the packet.

Pre-configuration Tasks

Before configuring QinQ stacking on a VLANIF interface, complete the following tasks:

  • Create a VLAN.

  • Configure a management VLAN.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface vlanif vlan-id

    The VLANIF interface corresponding to the management VLAN is created.

    Before running this command, ensure that the management VLAN exists.

  3. Run qinq stacking vlan vlan-id

    QinQ stacking is configured on the VLANIF interface.

    • When configuring QinQ stacking on a VLANIF interface, ensure that the VLANIF interface corresponds to the management VLAN. VLANIF interfaces corresponding to other VLANs do not support QinQ stacking.

    • Before changing the new outer VLAN, run the undo qinq stacking vlan command to cancel the QinQ stacking configuration.

    • The qinq stacking vlan and icmp host-unreachable send commands are mutually exclusive. Run the undo icmp host-unreachable send command before using the qinq stacking vlan command.

    • The outer VLAN added to packets must be an existing VLAN with no VLANIF interface configured.

Follow-up Procedure

  • Run the display vlan [ vlan-id [ verbose ] ] command to check the management VLAN.
  • Run the display this command in the VLANIF interface view to check the QinQ stacking configuration.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >