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

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
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).
Example for Configuring Layer 2 Protocol Transparent Transmission

Example for Configuring Layer 2 Protocol Transparent Transmission

Networking Requirements

As shown in Figure 14-4, CEs are edge devices on an enterprise's networks in different locations, and PE1 and PE2 are edge devices on the ISP network. The two networks are Layer 2 networks and connected through the ISP network. STP is used to prevent loops on Layer 2 networks. Enterprise users require that STP should run on their Layer 2 networks so that spanning trees can be generated correctly.

Figure 14-4  Networking of 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. Configure interface-based Layer 2 protocol transparent transmission on PEs so that STP BPDUs are not sent to the CPUs of PEs for processing.

Procedure

  1. Enable STP on CEs.

    # Configure CE1.

    <Huawei> system-view
    [Huawei] sysname CE1

    # Set the priority of CE2 to 4096.

    <Huawei> system-view
    [Huawei] sysname CE2
    [CE2] stp priority 4096
    NOTE:

    STP is enabled in the system and on an interface by default. You do not need to configure it.

  2. Configure PEs to replace the destination MAC address of STP BPDUs received from CEs.

    # Configure PE1.

    <Huawei> system-view
    [Huawei] sysname PE1
    [PE1] l2protocol-tunnel stp group-mac 0100-0ccd-eeee

    # Configure PE2.

    <Huawei> system-view
    [Huawei] sysname PE2
    [PE2] l2protocol-tunnel stp group-mac 0100-0ccd-eeee

  3. Configure the transparent bridge on PEs.

    # Configure PE1. The configuration of PE2 is similar to that of PE1, and is not mentioned here.

    [PE1] bridge 1
    [PE1-bridge1] quit
    [PE1] interface gigabitethernet 1/0/0
    [PE1-GigabitEthernet1/0/0] bridge 1
    [PE1-GigabitEthernet1/0/0] quit
    [PE1] interface gigabitethernet 2/0/0
    [PE1-GigabitEthernet2/0/0] bridge 1
    [PE1-GigabitEthernet2/0/0] quit

  4. Enable Layer 2 protocol transparent transmission on GE2/0/0 of PE1 and PE2.

    # Configure PE1. The configuration of PE2 is similar to that of PE1, and is not mentioned here.

    [PE1] interface gigabitethernet 2/0/0
    [PE1-GigabitEthernet2/0/0] l2protocol-tunnel stp enable
    [PE1-GigabitEthernet2/0/0] quit

  5. Verify the configuration.

    # After the configuration is complete, wait for 30s and run the display stp brief command on CE1 and CE2 to view the root in the MST region. You can see that a spanning tree is calculated between CE1 and CE2. Eth2/0/0 on CE1 is a root port, and Eth2/0/0 on CE2 is a designated port.

    [CE1] display stp brief
     MSTID   Port                        Role  STP State     Protection     
        0    Ethernet2/0/0               ROOT  FORWARDING      NONE
    
    [CE2] display stp brief
     MSTID   Port                        Role  STP State     Protection     
        0    Ethernet2/0/0               DESI  FORWARDING      NONE
    

Configuration Files

  • Configuration file of CE1

    #
     sysname CE1
    #
    interface Ethernet2/0/0
    #
    return
  • Configuration file of CE2

    #
     sysname CE2
    #
    stp instance 0 priority 4096
    #
    interface Ethernet2/0/0
    #
    return
  • Configuration file of PE1

    #
     sysname PE1
    #
     l2protocol-tunnel stp group-mac 0100-0ccd-eeee
    #
    bridge 1
    #
    interface GigabitEthernet1/0/0
     bridge 1
    #
    interface GigabitEthernet2/0/0
     bridge 1
     l2protocol-tunnel stp enable
    #
    return
  • Configuration file of PE2

    #
     sysname PE2
    #
     l2protocol-tunnel stp group-mac 0100-0ccd-eeee
    #
    bridge 1
    #
    interface GigabitEthernet1/0/0
     bridge 1
    #
    interface GigabitEthernet1/0/0
     bridge 1
     l2protocol-tunnel stp enable
    #
    return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 19690

Downloads: 64

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