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

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009 CLI-based Configuration Guide - Ethernet Switching

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 Multi-Ring Network

Example for Configuring SEP on a Multi-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 multi-ring networking, multiple rings consisting of Layer 2 switching devices are deployed at the access layer and aggregation layer. SEP runs at the access layer and aggregation layer to implement link redundancy.

As shown in Figure 13-16, multiple Layer 2 switching devices form ring networks at the access layer and aggregation layer.

SEP runs at the access layer and 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-16  Networking diagram of a multi-ring SEP network

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic SEP functions.

    1. Configure SEP segments 1 to 3 and configure VLAN 10, VLAN 20, and VLAN 30 as their respective control VLANs.

      • Configure SEP segment 1 on Router1 to Router5 and configure VLAN 10 as the control VLAN of SEP segment 1.
      • Configure SEP segment 2 on Router2, Router3, and Router6 to Router8, and configure VLAN 20 as the control VLAN of SEP segment 2.

      • Configure SEP segment 3 on Router3, Router4, and Router9 to Router11, and configure VLAN 30 as the control VLAN of SEP segment 3.

    2. Add devices on the rings to the SEP segments and configure interface roles on the edge devices of the SEP segments.

      • On Router1 to Router5, add the interfaces on the ring at the access layer to SEP segment 1. Configure the roles of GE7/0/1 and GE7/0/3 of Router1 in SEP segment 1.

      • Add GE7/0/2 of Router2, GE7/0/1 and GE7/0/2 of Router6 to Router8, and GE7/0/2 of Router3 to SEP segment 2. Configure the roles of GE7/0/2 of Router2 and GE7/0/2 of Router3 in SEP segment 2.

      • Add GE7/0/1 of Router3, GE7/0/1 and GE7/0/2 of Router9 to Router11, and GE7/0/1 of Router4 to SEP segment 3. Configure the roles of GE7/0/1 of Router3 and GE7/0/1 of Router4 in SEP segment 3.

    3. Specify an interface to block on the device where the primary edge interface is located.

      • In SEP segment 1, specify the interface with the highest priority to block.

      • In SEP segment 2, specify the device and interface names to block the specified interface.

      • In SEP segment 3, specify the blocked interface based on the configured hop count.

    4. Configure the preemption mode on the device where the primary edge interface is located.

      Configure delayed preemption in SEP segment 1 and manual preemption in SEP segment 2 and SEP segment 3.

    5. Configure the topology change notification function on the edge devices between SEP segments, namely, Router2, Router3, and Router4.

  2. Configure the Layer 2 forwarding function on CE1, CE2, and Router1 to Router11.

Procedure

  1. Configure basic SEP functions.

    1. Configure SEP segments 1 to 3 and configure VLAN 10, VLAN 20, and VLAN 30 as their respective control VLANs, as shown in Figure 13-16.

      # 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
      [Router2] sep segment 2
      [Router2-sep-segment2] control-vlan 20
      [Router2-sep-segment2] protected-instance all
      [Router2-sep-segment2] 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
      [Router3] sep segment 2
      [Router3-sep-segment2] control-vlan 20
      [Router3-sep-segment2] protected-instance all
      [Router3-sep-segment2] quit
      [Router3] sep segment 3
      [Router3-sep-segment3] control-vlan 30
      [Router3-sep-segment3] protected-instance all
      [Router3-sep-segment3] 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
      [Router4] sep segment 3
      [Router4-sep-segment3] control-vlan 30
      [Router4-sep-segment3] protected-instance all
      [Router4-sep-segment3] 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

      # Configure Router6 to Router11.

      The configurations of Router6 to Router11 are similar to the configurations of Router1 to Router5 except for the control VLANs of different SEP segments.

      For details about the configuration, see the configuration files.

      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 devices on the rings to the SEP segments and configure interface roles according to Figure 13-16.

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

      # Configure Router3.

      [Router3] interface gigabitethernet 7/0/3
      [Router3-GigabitEthernet7/0/3] stp disable
      [Router3-GigabitEthernet7/0/3] sep segment 1
      [Router3-GigabitEthernet7/0/3] quit
      [Router3] interface gigabitethernet 7/0/4
      [Router3-GigabitEthernet7/0/4] stp disable
      [Router3-GigabitEthernet7/0/4] sep segment 1
      [Router3-GigabitEthernet7/0/4] quit
      [Router3] interface gigabitethernet 7/0/2
      [Router3-GigabitEthernet7/0/2] stp disable
      [Router3-GigabitEthernet7/0/2] sep segment 2 edge secondary
      [Router3-GigabitEthernet7/0/2] quit
      [Router3] interface gigabitethernet 7/0/1
      [Router3-GigabitEthernet7/0/1] stp disable
      [Router3-GigabitEthernet7/0/1] sep segment 3 edge secondary
      [Router3-GigabitEthernet7/0/1] quit

      # Configure Router4.

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

      # Configure Router6 to Router11.

      The configurations of Router6 to Router11 are similar to the configurations of Router1 to Router5 except for the interface roles.

      For details about the configuration, see the configuration files.

    3. Specify an interface to block.

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

      [Router1] sep segment 1
      [Router1-sep-segment1] block port optimal
      [Router1-sep-segment1] quit

      # On Router3, set the priority of GE7/0/4 to 128, which is the highest priority among the interfaces so that GE7/0/4 will be blocked.

      [Router3] interface gigabitethernet 7/0/4
      [Router3-GigabitEthernet7/0/4] sep segment 1 priority 128
      [Router3-GigabitEthernet7/0/4] quit

      Retain the default priority of the other interfaces in SEP segment 1.

      # On Router2 where the primary edge interface of SPE segment 2 is located, specify the device and interface names so that the specified interface will be blocked.

      Before specifying the interface to block, use the display sep topology command to view the current topology information and obtain information about all the interfaces in the topology. Then specify the device and interface names.

      [Router2] sep segment 2
      [Router2-sep-segment2] block port sysname Router7 interface gigabitethernet 7/0/1
      [Router2-sep-segment2] quit

      # On Router4 where the primary edge interface of SEP segment 3 is located, specify the blocked interface based on the configured hop count.

      [Router4] sep segment 3
      [Router4-sep-segment3] block port hop 5
      [Router4-sep-segment3] quit
      NOTE:

      SEP sets the hop count of the primary edge interface to 1 and the hop count of the secondary edge interface to 2. Hop counts of other interfaces increase by steps of 1 in the downstream direction of the primary interface.

    4. Configure the preemption mode.

      # Configure delayed preemption on Router1.

      [Router1] sep segment 1
      [Router1-sep-segment1] preempt delay 30
      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.

      # Configure manual preemption on Router2.

      [Router2] sep segment 2
      [Router2-sep-segment2] preempt manual

      # Configure the manual preemption mode on Router4.

      [Router4] sep segment 3
      [Router4-sep-segment3] preempt manual
    5. Configure the topology change notification function.

      # Configure devices in SEP segment 2 to notify SEP segment 1 of topology changes.

      # Configure Router2.

      [Router2] sep segment 2
      [Router2-sep-segment2] tc-notify segment 1
      [Router2-sep-segment2] quit

      # Configure Router3.

      [Router3] sep segment 2
      [Router3-sep-segment2] tc-notify segment 1
      [Router3-sep-segment2] quit

      # Configure SEP segment 3 to notify SEP segment 1 of topology changes.

      # Configure Router3.

      [Router3] sep segment 3
      [Router3-sep-segment3] tc-notify segment 1
      [Router3-sep-segment3] quit

      # Configure Router4.

      [Router4] sep segment 3
      [Router4-sep-segment3] tc-notify segment 1
      [Router4-sep-segment3] quit
      NOTE:

      The topology change notification function is configured on edge devices between SEP segments so that the upper-layer network can be notified of topology changes on the lower-layer network.

  2. Configure the Layer 2 forwarding function on the CEs and Router1 to Router11.

    For details about the configuration, see the configuration files.

  3. Verify the configuration.

    # After completing the preceding configurations, 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/4 of Router3 has switched from the Discarding state to the Forwarding state.

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

Configuration Files

  • Configuration file of Router1

    #
     sysname Router1
    #
    vlan batch 10 100 200 300
    #
    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 200
     stp disable
     sep segment 1 edge primary
    #
    interface GigabitEthernet7/0/2
     port hybrid pvid vlan 300
     port hybrid tagged vlan 100 200
     port hybrid untagged vlan 300
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200 300
     stp disable
     sep segment 1 edge secondary
    #
    return
  • Configuration file of Router2

    #
     sysname Router2
    #
    vlan batch 10 20 100 200
    #
    sep segment 1
     control-vlan 10
     protected-instance 0 to 4094
    sep segment 2
     control-vlan 20
     block port sysname Router7 interface GigabitEthernet7/0/1
     tc-notify segment 1
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2 edge primary
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    return
  • Configuration file of Router3

    #
     sysname Router3
    #
    vlan batch 10 20 30 100 200
    #
    sep segment 1
     control-vlan 10
     protected-instance 0 to 4094
    sep segment 2
     control-vlan 20
     tc-notify segment 1
     protected-instance 0 to 4094
    sep segment 3
     control-vlan 30
     tc-notify segment 1
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 30 100
     stp disable
     sep segment 3 edge secondary
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2 edge secondary
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/4
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
     sep segment 1 priority 128
    #
    return
  • Configuration file of Router4

    #
     sysname Router4
    #
    vlan batch 10 30 100 200
    #
    sep segment 1
     control-vlan 10
     protected-instance 0 to 4094
    sep segment 3
     control-vlan 30
     block port hop 5
     tc-notify segment 1
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 30 100
     stp disable
     sep segment 3 edge primary
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    return
  • Configuration file of Router5

    #
     sysname Router5
    #
    vlan batch 10 100 200 300
    #
    sep segment 1
     control-vlan 10
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100 200
     stp disable
     sep segment 1
    #
    interface GigabitEthernet7/0/2
     port hybrid pvid vlan 300
     port hybrid tagged vlan 100 200
     port hybrid untagged vlan 300
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 200 300
     stp disable
     sep segment 1
    #
    return
  • Configuration file of Router6

    #
     sysname Router6
    #
    vlan batch 20 200
    #
    sep segment 2
     control-vlan 20
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    return
  • Configuration file of Router7

    #
     sysname Router7
    #
    vlan batch 20 200
    #
    sep segment 2
     control-vlan 20
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 200
    #
    return
  • Configuration file of Router8

    #
     sysname Router8
    #
    vlan batch 20 200
    #
    sep segment 2
     control-vlan 20
     protected-instance 0 to 4094
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    interface GigabitEthernet7/0/2
     port hybrid tagged vlan 20 200
     stp disable
     sep segment 2
    #
    return
  • Configuration file of Router9

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

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

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

    #
     sysname CE1
    #
    vlan batch 100
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 100
    #
    return
  • Configuration file of CE2

    #
     sysname CE2
    #
    vlan batch 200
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 200
    #
    return
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174108

Views: 56065

Downloads: 41

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