< 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

  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.

    If the PW-side routing interface is a Layer 3 interface switched by the undo portswitch command, the AC-side interface cannot be a Layer 3 routing interface or its sub-interface belonging to a Layer 3 interface; otherwise, traffic fails to be forwarded. This rule applies to S5710-EI, S5720-EI, S6720-EI, and S6720S-EI.

  6. (Optional) Run qinq termination l2 { symmetry | asymmetry }

    The attributes of the sub-interface for QinQ VLAN tag termination are set.

    By default, access attributes are not configured on a sub-interface for QinQ VLAN tag termination.

    When a sub-interface for QinQ VLAN tag termination is connected to the L2VPN, the PE processes packets based on the QinQ termination configuration, attributes of the sub-interface for QinQ VLAN tag termination when the sub-interface connects to the PWE3, VLL, or VPLS network, and encapsulation mode.

    Select the encapsulation mode according to encapsulation (VSI view) or mpls l2vc.

    Table 1 Packet processing on the inbound interface in the VPLS scenario

    Inbound Interface Type

    Ethernet Encapsulation

    VLAN Encapsulation

    Symmetrical mode

    Removes the outer tag.

    Reserves double tags. No action is required.

    Asymmetrical mode

    Removes double tags.

    Removes the outer tag.

    Default

    Removes double tags.

    Reserves double tags. No action is required.

    Table 2 Packet processing on the outbound interface in the VPLS scenario

    Inbound Interface Type

    Ethernet Encapsulation

    VLAN Encapsulation

    Symmetrical mode

    Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    Asymmetrical mode

    S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry one inner tag: removes the MPLS label, removes one inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry double inner tags: removes the MPLS label, removes double inner tags, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Default

    S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Removes the MPLS label and transparently transmits packets.

    Table 3 Packet processing on the inbound interface in the VLL or PWE3 scenario

    Inbound Interface Type

    Raw Encapsulation

    Tagged Encapsulation

    Symmetrical mode

    Removes the outer tag.

    Reserves double tags. No action is required.

    Asymmetrical mode

    Removes double tags.

    Removes the outer tag.

    Default

    Removes the outer tag.

    Reserves double tags. No action is required.

    Table 4 Packet processing on the outbound interface in the VLL or PWE3 scenario

    Inbound Interface Type

    Raw Encapsulation

    Tagged Encapsulation

    Symmetrical mode

    Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    Asymmetrical mode

    S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry one inner tag: removes the MPLS label, removes one inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry double inner tags: removes the MPLS label, removes double inner tags, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

    Default

    Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

    If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid on the sub-interface for QinQ VLAN tag termination. If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid on the sub-interface for QinQ VLAN tag termination.

  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.

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