No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Ethernet Switching

S7700 and S9700 V200R011C10

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a QinQ Sub-interface

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. When data packets sent by CEs to PEs carry double VLAN tags, the sub-interface terminates double VLAN tags. This sub-interface is called QinQ termination sub-interface.

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.

    NOTE:

    If the PW-side interface is a Layer 3 interface switched by the undo portswitch command, the AC-side interface cannot be a Layer 3 interface or subinterface belonging to a Layer 3 interface; otherwise, traffic forwarding is abnormal.

  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.
    NOTE:
    Select the encapsulation mode according to encapsulation (VSI view) or mpls l2vc.
    Table 8-4  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 8-5  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.

    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 carry the inner tag, or 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 do not carry the inner tag.

    Asymmetrical mode

    X series cards: 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 cards: 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 do not carry the inner tag, or 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 if packets carry the inner tag.

    X series cards: 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 do not carry the inner tag, or 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 if packets carry the inner tag.

    Other cards: 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 do not carry the 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 one inner tag; 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 if packets carry double inner tags.

    Default

    X series cards: 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 cards: 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 do not carry the inner tag, or 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 if packets carry the inner tag.

    Removes the MPLS label and transparently transmits packets.

    Table 8-6  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 8-7  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.

    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 carry the inner tag, or 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 do not carry the inner tag.

    Asymmetrical mode

    X series cards: 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 cards: 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 do not carry the inner tag, or 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 if packets carry the inner tag.

    X series cards: 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 do not carry the inner tag, or 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 if packets carry the inner tag.

    Other cards: 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 do not carry the 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 one inner tag; 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 if packets carry double inner tags.

    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.

    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 carry the inner tag, or removes the MPLS label and adds the outer tag specified by pe-vid on the sub-interface for QinQ VLAN tag termination if packets do not carry the inner tag.

  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.

Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178310

Views: 296079

Downloads: 141

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next