< Home

Configuring a QinQ Sub-interface

Context

When a VPN network connects to an ISP network through a sub-interface, the sub-interface needs to terminate VLAN tags. A QinQ termination sub-interface can remove double VLAN tags carried by packets sent from CEs to PEs.

Procedure

  • Configure an IPv4 address for a sub-interface.
    1. On the PE device, run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run port link-type { hybrid | trunk }

      The port link-type is set.

    4. Run quit

      Return to the system view.

    5. Run interface interface-type interface-number.subinterface-number

      The view of the sub-interface connecting the PE to the CE is displayed.

    6. Run ip address ip-address { mask | mask-length }

      An IPv4 address is configured for the sub-interface.

    7. Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

      QinQ termination is configured on the sub-interface.

      After a VLANIF interface is configured, the corresponding VLAN cannot be configured as an outer VLAN for the sub-interface for QinQ VLAN tag termination.

    8. Run arp broadcast enable

      The sub-interface is enabled to forward ARP broadcast packets.

  • Configure an IPv6 address for a sub-interface.
    1. On the PE device, run system-view

      The system view is displayed.

    2. Run ipv6

      IPv6 packet forwarding is enabled.

    3. Run interface interface-type interface-number

      The interface view is displayed.

    4. Run port link-type { hybrid | trunk }

      The port link-type is set.

    5. Run quit

      Return to the system view.

    6. Run interface interface-type interface-number.subinterface-number

      The view of the sub-interface connecting the PE to the CE is displayed.

    7. Run ipv6 enable

      The IPv6 function is enabled on the interface.

    8. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

      An IPv6 address is configured for the sub-interface.

    9. Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

      QinQ termination is configured on the sub-interface.

      After a VLANIF interface is configured, the corresponding VLAN cannot be configured as an outer VLAN for the sub-interface for QinQ VLAN tag termination.

    10. Run ipv6 nd ns multicast-enable

      The sub-interface is enabled to send NS multicast packets.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >