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

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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 Interface-based Layer 2 Protocol Transparent Transmission

Configuring Interface-based Layer 2 Protocol Transparent Transmission

Networking Requirements

In Figure 22-1, CEs are edge devices on two private networks of an enterprise located in different areas, and PE1 and PE2 are edge devices of the carrier network. The two networks of the enterprise are Layer 2 networks and they are connected through the carrier network. STP is run on the Layer 2 networks to prevent loops. Enterprise users require that only STP run on the private networks so that spanning trees can be generated correctly.

Figure 22-1  Networking diagram for configuring interface-based Layer 2 protocol transparent transmission

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure STP on CEs to prevent loops on Layer 2 networks.

  2. Add PE interfaces connected to CEs to specified VLANs so that PEs forward packets from the VLANs.

  3. Configure interface-based Layer 2 protocol transparent transmission on PEs so that STP packets are not sent to the CPUs of PEs for processing.

Procedure

  1. Enable STP on CEs.

    # Configure CE1.

    <HUAWEI> system-view
    [~HUAWEI] sysname CE1
    [*HUAWEI] commit
    [~CE1] vlan 100
    [*CE1-vlan100] quit
    [*CE1] stp enable
    [*CE1] interface 10ge 1/0/1
    [*CE1-10GE1/0/1] port link-type access
    [*CE1-10GE1/0/1] port default vlan 100
    [*CE1-10GE1/0/1] quit
    [*CE1] commit

    # Configure CE2.

    <HUAWEI> system-view
    [~HUAWEI] sysname CE2
    [*HUAWEI] commit
    [~CE2] vlan 100
    [*CE2-vlan100] quit
    [*CE2] stp enable
    [*CE2] interface 10ge 1/0/1
    [*CE2-10GE1/0/1] port link-type access
    [*CE2-10GE1/0/1] port default vlan 100
    [*CE2-10GE1/0/1] quit
    [*CE2] commit

  2. Add 10GE1/0/1 on PE1 and PE2 to VLAN 100 and enable Layer 2 protocol transparent transmission on PEs.

    # Configure PE1.

    <HUAWEI> system-view
    [~HUAWEI] sysname PE1
    [*HUAWEI] commit
    [~PE1] vlan 100
    [*PE1-vlan100] quit
    [*PE1] interface 10ge 1/0/1
    [*PE1-10GE1/0/1] port link-type access
    [*PE1-10GE1/0/1] port default vlan 100
    [*PE1-10GE1/0/1] l2protocol-tunnel stp enable
    [*PE1-10GE1/0/1] quit
    [*PE1] commit
    

    # Configure PE2.

    <HUAWEI> system-view
    [~HUAWEI] sysname PE2
    [*HUAWEI] commit
    [~PE2] vlan 100
    [*PE2-vlan100] quit
    [*PE2] interface 10ge 1/0/1
    [*PE2-10GE1/0/1] port link-type access
    [*PE2-10GE1/0/1] port default vlan 100
    [*PE2-10GE1/0/1] l2protocol-tunnel stp enable
    [*PE2-10GE1/0/1] quit
    [*PE2] commit
    NOTE:

    If the peer device sends non-standard protocol packets, you can run the l2protocol-tunnel user-defined-protocol protocol-name protocol-mac protocol-mac [ encap-type { { ethernetii | snap } protocol-type protocol-type-value | llc dsap dsap-value ssap ssap-value } ] group-mac { group-mac | default-group-mac } command to define the characteristics of a Layer 2 protocol whose packets are transparently transmitted, and then run the l2protocol-tunnel user-defined-protocol protocol-name enable command to enable Layer 2 protocol transparent transmission on the interface.

  3. Configure PEs to replace the destination MAC address of STP packets received from CEs.

    # Configure PE1.

    [~PE1] l2protocol-tunnel stp group-mac 0100-5e00-0011
    [*PE1] commit
    

    # Configure PE2.

    [~PE2] l2protocol-tunnel stp group-mac 0100-5e00-0011
    [*PE2] commit
    

  4. Configure the priority of CE2 to 4096.

    [~CE2] stp priority 4096
    [*CE2] commit
    

  5. Verify the configuration.

    # After the configuration, run the display l2protocol-tunnel group-mac command. You can view the protocol type, protocol name, multicast destination MAC address, group MAC address, and priority of Layer 2 protocol packets to be transparently transmitted.

    The information displayed on PE1 is used as an example.

    [~PE1] display l2protocol-tunnel group-mac stp
    Protocol         EncapeType ProtocolType Protocol-MAC   Group-MAC      Pri      
    -----------------------------------------------------------------------------   
    stp              llc        dsap 0x42    0180-c200-0000 0100-5e00-0011 0        
                                ssap 0x42                                           

    # After 30s, run the display stp brief command on CE1 and CE2 to check the root in the MST region. You can see that a spanning tree is calculated between CE1 and CE2. 10GE1/0/1 on CE1 is the root port and 10GE1/0/1 on CE2 is the designated port.

    [~CE1] display stp brief
    MSTID  Port                        Role  STP State     Protection  Cost       Edged
        0  10GE1/0/1                   ROOT  forwarding    none        2000       disable
    
    [~CE2] display stp brief
    MSTID  Port                        Role  STP State     Protection  Cost       Edged
        0  10GE1/0/1                   DESI  forwarding    none        2000       disable
    

Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 144259

Downloads: 3160

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