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

S12700 V200R012C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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. 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.

    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.

    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

    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: 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.

    X series cards: 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 cards: 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

    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: 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 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.

    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

    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: 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.

    X series cards: 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 cards: 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 in a sub-interface view.

Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038103

Views: 124022

Downloads: 52

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