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 a Hybrid SEP+MSTP Ring Network

Example for Configuring a Hybrid SEP+MSTP Ring Network

Networking Requirements

Generally, redundant links are used to connect an Ethernet switching network to an upper-layer network to provide link backup and enhance network reliability. The use of redundant links, however, may produce loops, causing broadcast storms and rendering the MAC address table unstable. As a result, communication quality deteriorates, and services may even be interrupted. SEP can be deployed on the ring network to eliminate loops and restore communication if a link fault occurs.

NOTE:

In this example, devices at the aggregation layer run the MSTP protocol.

As shown in Figure 13-17, multiple Layer 2 switching devices form a ring at the access layer, and multiple Layer 3 devices form a ring at the aggregation layer. The two devices where the access layer and the aggregation layer are intersected do not support SEP. You can configure SEP at the access layer to implement redundancy protection switching and configure the topology change notification function on an edge device in a SEP segment. This function enables an upper-layer network to detect topology changes in a lower-layer network in time.

  • When there is no faulty link on the ring network, SEP can eliminate loops.
  • When a link fails on the ring network, SEP can rapidly restore communication between nodes.
  • The topology change notification function must be configured on an edge device in a SEP segment. This enables an upper-layer network to detect topology changes in a lower-layer network in time.

After receiving a message indicating the topology change in a lower-layer network, a device on an upper-layer network sends TC packets to instruct other devices to delete original MAC addresses and learn new MAC addresses after the topology of the lower-layer network changes. This ensures uninterrupted traffic forwarding.

Figure 13-17  Networking diagram of a hybrid-ring SEP network

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic SEP functions.

    1. Configure SEP segment 1 on Router1 to Router3 and configure VLAN 10 as the control VLAN of SEP segment 1.

    2. Add Router1 to Router3 to SEP segment 1 and configure interface roles on the edge devices (Router1 and Router2) of the SEP segment.

      NOTE:

      PE1 and PE2 do not support the SEP protocol; therefore, the interfaces of Router1 and Router2 connected to the PEs must be no-neighbor edge interfaces.

    3. On the device where the no-neighbor primary edge interface is located, specify the interface in the middle of the SEP segment as the interface to block.

    4. Configure manual preemption.

    5. Configure the topology change notification function so that the upper-layer network running MSTP can be notified of topology changes in the SEP segment.

  2. Configure basic MSTP functions.

    1. Add Router1, Router2, PE1 to PE4 to an MST region RG1.

    2. Create VLANs on Router1, Router2, PE1 to PE4 and add interfaces on the STP ring to the VLANs.

    3. Configure PE3 as the root bridge and PE4 as the backup root bridge.

  3. Configure the Layer 2 forwarding function on CE and Router1 to Router3.

Procedure

  1. Configure basic SEP functions.

    1. Configure SEP segment 1 on Router1 to Router3 and configure VLAN 10 as the control VLAN of SEP segment 1.

      # Configure Router1.
      <Huawei> system-view
      [Huawei] sysname Router1
      [Router1] sep segment 1
      [Router1-sep-segment1] control-vlan 10
      [Router1-sep-segment1] protected-instance all
      [Router1-sep-segment1] quit
      # Configure Router2.
      <Huawei> system-view
      [Huawei] sysname Router2
      [Router2] sep segment 1
      [Router2-sep-segment1] control-vlan 10
      [Router2-sep-segment1] protected-instance all
      [Router2-sep-segment1] quit
      # Configure Router3.
      <Huawei> system-view
      [Huawei] sysname Router3
      [Router3] sep segment 1
      [Router3-sep-segment1] control-vlan 10
      [Router3-sep-segment1] protected-instance all
      [Router3-sep-segment1] quit
      NOTE:
      • The control VLAN must be a VLAN that has not been created or used, but the configuration file automatically displays the command for creating the VLAN.

      • Each SEP segment must be configured with a control VLAN. After an interface is added to the SEP segment configured with a control VLAN, the interface is automatically added to the control VLAN.

    2. Add Router1 to Router3 to SEP segment 1 and configure interface roles.

      # Configure Router1.

      [Router1] interface gigabitethernet 7/0/1
      [Router1-GigabitEthernet7/0/1] sep segment 1 edge no-neighbor primary
      [Router1-GigabitEthernet7/0/1] quit
      [Router1] interface gigabitethernet 7/0/2
      [Router1-GigabitEthernet7/0/2] stp disable
      [Router1-GigabitEthernet7/0/2] sep segment 1
      [Router1-GigabitEthernet7/0/2] quit

      # Configure Router2.

      [Router2] interface gigabitethernet 7/0/1
      [Router2-GigabitEthernet7/0/1] sep segment 1 edge no-neighbor secondary
      [Router2-GigabitEthernet7/0/1] quit
      [Router2] interface gigabitethernet 7/0/2
      [Router2-GigabitEthernet7/0/2] stp disable
      [Router2-GigabitEthernet7/0/2] sep segment 1
      [Router2-GigabitEthernet7/0/2] quit

      # Configure Router3.

      [Router3] interface gigabitethernet 7/0/1
      [Router3-GigabitEthernet7/0/1] stp disable
      [Router3-GigabitEthernet7/0/1] sep segment 1
      [Router3-GigabitEthernet7/0/1] quit
      [Router3] interface gigabitethernet 7/0/2
      [Router3-GigabitEthernet7/0/2] stp disable
      [Router3-GigabitEthernet7/0/2] sep segment 1
      [Router3-GigabitEthernet7/0/2] quit
    3. Specify an interface to block.

      # On Router1 where the no-neighbor primary edge interface of SEP segment 1 is located, specify the interface in the middle of the SEP segment as the interface to block.

      [Router1] sep segment 1
      [Router1-sep-segment1] block port middle
    4. Configure the preemption mode.

      # Configure the manual preemption mode on Router1.

      [Router1-sep-segment1] preempt manual
    5. Configure the topology change notification function.

      # Configure devices in SEP segment 1 to notify the MSTP network of topology changes.

      # Configure Router1.

      [Router1-sep-segment1] tc-notify stp
      [Router1-sep-segment1] quit

      # Configure Router2.

      [Router2] sep segment 1
      [Router2-sep-segment1] tc-notify stp
      [Router2-sep-segment1] quit

  2. Configure basic MSTP functions.

    1. Configure an MST region.

      # Configure PE1.

      <Huawei> system-view
      [Huawei] sysname PE1
      [PE1] stp region-configuration
      [PE1-mst-region] region-name RG1
      [PE1-mst-region] active region-configuration
      [PE1-mst-region] quit

      # Configure PE2.

      <Huawei> system-view
      [Huawei] sysname PE2
      [PE2] stp region-configuration
      [PE2-mst-region] region-name RG1
      [PE2-mst-region] active region-configuration
      [PE2-mst-region] quit

      # Configure PE3.

      <Huawei> system-view
      [Huawei] sysname PE3
      [PE3] stp region-configuration
      [PE3-mst-region] region-name RG1
      [PE3-mst-region] active region-configuration
      [PE3-mst-region] quit

      # Configure PE4.

      <Huawei> system-view
      [Huawei] sysname PE4
      [PE4] stp region-configuration
      [PE4-mst-region] region-name RG1
      [PE4-mst-region] active region-configuration
      [PE4-mst-region] quit

      # Configure Router1.

      [Router1] stp region-configuration
      [Router1-mst-region] region-name RG1
      [Router1-mst-region] active region-configuration
      [Router1-mst-region] quit

      # Configure Router2.

      [Router2] stp region-configuration
      [Router2-mst-region] region-name RG1
      [Router2-mst-region] active region-configuration
      [Router2-mst-region] quit
    2. Create VLANs and add interfaces to VLANs.

      # On PE1, create VLAN 100 and add GE7/0/1, GE7/0/2, and GE7/0/3 to VLAN 100.

      [PE1] vlan 100
      [PE1-vlan100] quit
      [PE1] interface gigabitethernet 7/0/1
      [PE1-GigabitEthernet7/0/1] port hybrid tagged vlan 100
      [PE1-GigabitEthernet7/0/1] quit
      [PE1] interface gigabitethernet 7/0/2
      [PE1-GigabitEthernet7/0/2] port hybrid tagged vlan 100
      [PE1-GigabitEthernet7/0/2] quit
      [PE1] interface gigabitethernet 7/0/3
      [PE1-GigabitEthernet7/0/3] port hybrid tagged vlan 100
      [PE1-GigabitEthernet7/0/3] quit

      # On PE2, PE3, and PE4, create VLAN 100 and add GE7/0/1, GE7/0/2, and GE7/0/3 to VLAN 100.

      The configurations of PE2, PE3, and PE4 are similar to the configuration of PE1. For details about the configuration, see the configuration files.

      # On Router1 and Router2, create VLAN 100 and add GE7/0/1 to VLAN 100. The configurations of Router1 and Router2 are similar to the configuration of PE1. For details about the configuration, see the configuration files.

    3. Enable MSTP.

      # Configure PE1.

      [PE1] stp enable

      # Configure PE2.

      [PE2] stp enable

      # Configure PE3.

      [PE3] stp enable

      # Configure PE4.

      [PE4] stp enable

      # Configure Router1.

      [Router1] stp enable

      # Configure Router2.

      [Router2] stp enable
    4. Configure PE3 as the root bridge and PE4 as the backup root bridge.

      # Set the priority of PE3 to 0 in MSTP to ensure that PE3 functions as the root bridge.

      [PE3] stp root primary

      # Set the priority of PE4 to 4096 in MSTP to ensure that PE4 functions as the backup root bridge.

      [PE4] stp root secondary

  3. Configure the Layer 2 forwarding function on the CE and Router1 to Router3.

    For details about the configuration, see the configuration files.

  4. Verify the configuration.

    # After the configurations are complete and network becomes stable, run the following commands to verify the configuration. Router1 is used as an example.

    • Run the shutdown command on GE7/0/1 of Router2 to simulate an interface fault, and then run the display sep interface command on Router3 to check whether GE7/0/2 of Router3 has switched from the Discarding state to the Forwarding state.

      <Router3> display sep interface gigabitethernet 7/0/2
      SEP segment 1
      ----------------------------------------------------------------
      Interface           Port Role     Neighbor Status     Port Status
      ----------------------------------------------------------------
      GE7/0/2             common        up                  forwarding 

Configuration Files

  • Configuration file of Router1

    #
     sysname Router1
    #
    vlan batch 10 100
    #
    stp region-configuration
     region-name RG1
     active region-configuration
    #
    sep segment 1
     control-vlan 10
     block port middle
     tc-notify stp
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100
     sep segment 1 edge no-neighbor primary 
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 10 100
     stp disable
     sep segment 1
    #
    return
  • Configuration file of Router2

    #
     sysname Router2
    #
    vlan batch 10 100
    #
    stp region-configuration
     region-name RG1
     active region-configuration
    #
    sep segment 1
     control-vlan 10
     tc-notify stp
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100
     sep segment 1 edge no-neighbor secondary
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 10 100
     stp disable
     sep segment 1
    #
    return
  • Configuration file of Router3

    #
     sysname Router3
    #
    vlan batch 10 100
    #
    sep segment 1
     control-vlan 10
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 10 100
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan vlan 100
    #
    return
  • Configuration file of PE1

    #
     sysname PE1
    #
    vlan batch 100
    #
     stp region-configuration
      region-name RG1
      active region-configuration
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 100
    #
    return            
  • Configuration file of PE2

    #
     sysname PE2
    #
    vlan batch 100
    #
     stp region-configuration
      region-name RG1
      active region-configuration
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 100
    #
    return
  • Configuration file of PE3

    #
     sysname PE3
    #
    vlan batch 100 200
    #
     stp instance 0 root primary
    #
     stp region-configuration
      region-name RG1
      active region-configuration
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 100 200
    #
    interface GigabitEthernet7/0/3
     port hybrid pvid vlan 200
     port hybrid tagged vlan 100
     port hybrid untagged vlan 200
    #
    return
  • Configuration file of PE4

    #
     sysname PE4
    #
    vlan batch 100 200
    #
     stp instance 0 root secondary
    #
     stp region-configuration
      region-name RG1
      active region-configuration
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 100 200
    #
    interface GigabitEthernet7/0/3
     port hybrid pvid vlan 200
     port hybrid tagged vlan 100
     port hybrid untagged vlan 200
    #
    return
  • Configuration file of CE
    #
     sysname CE
    #
    vlan batch 100
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 8655

Downloads: 62

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