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 SEP on a Closed Ring Network

Example for Configuring SEP on a Closed 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.

In the closed ring networking, CE1 is dual-homed to a Layer 2 network through multiple Layer 2 switching devices. The two edge devices connected to the upper-layer Layer 2 network are directly connected to each other. The closed ring network is deployed at the aggregation layer to transparently transmit Layer 2 unicast and multicast packets. SEP runs at the aggregation layer to implement link redundancy.

As shown in Figure 13-15, Layer 2 switching devices Router1 to Router5 form a ring network.

SEP runs at the aggregation layer.
  • When there is no faulty link on a ring network, SEP can eliminate loops on the network.

  • When a link fails on the ring network, SEP can rapidly restore communication between nodes on the network.

Figure 13-15  Networking diagram of a closed ring SEP network

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic SEP functions.

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

    2. Add all devices on the ring to SEP segment 1, and configure the roles of GE7/0/1 and GE7/0/3 of Router1 in SEP segment 1.

    3. On the device where the primary edge interface is located, specify the interface with the highest priority to block.

    4. Set priorities of the interfaces in the SEP segment.

      Set the highest priority for GE7/0/2 of Router3 and retain the default priority of the other interfaces so that GE7/0/2 of Router3 will be blocked.

    5. Configure delayed preemption on the device where the primary edge interface is located.

  2. Configure the Layer 2 forwarding function on CE1 and Router1 to Router5.

Procedure

  1. Configure basic SEP functions.

    1. Configure SEP segment 1 on Router1 to Router5 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
      # Configure Router4.
      <Huawei> system-view
      [Huawei] sysname Router4
      [Router4] sep segment 1
      [Router4-sep-segment1] control-vlan 10
      [Router4-sep-segment1] protected-instance all
      [Router4-sep-segment1] quit
      # Configure Router5.
      <Huawei> system-view
      [Huawei] sysname Router5
      [Router5] sep segment 1
      [Router5-sep-segment1] control-vlan 10
      [Router5-sep-segment1] protected-instance all
      [Router5-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 all devices on the ring to SEP segment 1 and configure interface roles on the devices.

      NOTE:

      By default, STP is enabled on a Layer 2 interface. Before adding an interface to a SEP segment, disable STP on the interface.

      # On Router1, configure GE7/0/1 as the primary edge interface and GE7/0/3 as the secondary edge interface.

      [Router1] interface gigabitethernet 7/0/1
      [Router1-GigabitEthernet7/0/1] stp disable
      [Router1-GigabitEthernet7/0/1] sep segment 1 edge primary
      [Router1-GigabitEthernet7/0/1] quit
      [Router1] interface gigabitethernet 7/0/3
      [Router1-GigabitEthernet7/0/3] stp disable
      [Router1-GigabitEthernet7/0/3] sep segment 1 edge secondary
      [Router1-GigabitEthernet7/0/3] quit
      # Configure Router2.
      [Router2] interface gigabitethernet 7/0/1
      [Router2-GigabitEthernet7/0/1] stp disable
      [Router2-GigabitEthernet7/0/1] sep segment 1
      [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
      # Configure Router4.
      [Router4] interface gigabitethernet 7/0/1
      [Router4-GigabitEthernet7/0/1] stp disable
      [Router4-GigabitEthernet7/0/1] sep segment 1
      [Router4-GigabitEthernet7/0/1] quit
      [Router4] interface gigabitethernet 7/0/2
      [Router4-GigabitEthernet7/0/2] stp disable
      [Router4-GigabitEthernet7/0/2] sep segment 1
      [Router4-GigabitEthernet7/0/2] quit

      # Configure Router5.

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

      # On Router1 where the primary edge interface is located, specify the interface with the highest priority to block.

      [Router1] sep segment 1
      [Router1-sep-segment1] block port optimal
    4. Set the priority of GE7/0/2 on Router3.

      [Router3] interface gigabitethernet 7/0/2
      [Router3-GigabitEthernet7/0/2] sep segment 1 priority 128
      [Router3-GigabitEthernet7/0/2] quit
    5. Configure the preemption mode.

      # Configure delayed preemption on Router1.

      [Router1-sep-segment1] preempt delay 30
      [Router1-sep-segment1] quit
      NOTE:
      • You must set the preemption delay when delayed preemption is used because there is no default delay time.

      • When the last faulty interface recovers, edge interfaces do not receive any fault notification packet. If the primary edge interface does not receive any fault notification packet, it starts the delay timer. When the delay timer expires, nodes in the SEP segment start blocked interface preemption.

        To implement delayed preemption in this example, simulate a port fault and then rectify the fault. For example:

        Run the shutdown command on GE7/0/1 of Router2 to simulate an interface fault, and then run the undo shutdown command on GE7/0/2 to rectify the fault.

  2. Configure the Layer 2 forwarding function on CE1 and Router1 to Router5.

    For details about the configuration, see the configuration files.

  3. Verify the configuration.

    # Run the shutdown command on GE7/0/1 of Router3 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 200
    #
    sep segment 1
     control-vlan 10
     block port optimal
     preempt delay 30
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100
     stp disable
     sep segment 1 edge primary
    #
    interface GigabitEthernet7/0/2
     port hybrid pvid vlan 200
     port hybrid tagged vlan 100
     port hybrid untagged vlan 200
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1 edge secondary
    #
    return
  • Configuration file of Router2

    #
     sysname Router2
    #
    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
    #
    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
     sep segment 1 priority 128
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 100
    #
    return
  • Configuration file of Router4

    #
     sysname Router4
    #
    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
    #
    return
  • Configuration file of Router5

    #
     sysname Router5
    #
    vlan batch 10 100 200
    #
    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 pvid vlan 200
     port hybrid tagged vlan 100
     port hybrid untagged vlan 200
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    return
  • Configuration file of CE1

    #
     sysname CE1
    #
    vlan batch 100
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 16961

Downloads: 63

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