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 Multi-Instance

Example for Configuring SEP Multi-Instance

On a closed ring network, two SEP segments are configured to process different VLAN services, implement load balancing, and provide link backup.

Networking Requirements

In common SEP networking, a physical ring can be configured with only one SEP segment in which only one interface can be blocked. If an interface in a complete SEP segment is blocked, all service data is transmitted only along the path where the primary edge interface is located. The path where the secondary edge interface is located remains idle, wasting bandwidth.

To improve bandwidth efficiency and implement traffic load balancing, Huawei develops SEP multi-instance.

Figure 13-18  SEP multi-instance on a closed ring network

As shown in Figure 13-18, a ring network comprising Layer 2 switches (Router1 to Router4) is connected to the network. SEP runs at the aggregation layer. SEP multi-instance is configured on Router1 to Router4 to allow for two SEP segments to improve bandwidth efficiency, implement load balancing, and provide link backup.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic SEP functions.

    1. Create two SEP segments and a control VLAN on Router1 to Router4.

      Different SEP segments can use the same control VLAN.

    2. Configure SEP protected instances, and set mappings between SEP protected instances and user VLANs to ensure that topology changes affect only corresponding VLANs.
    3. Add all the devices on the ring network to the SEP segments, and configure GE7/0/1 as the primary edge interface and GE7/0/3 as the secondary edge interface on Router1.

    4. Configure an interface blocking mode on the device where the primary edge interface resides.
    5. Configure the preemption mode to ensure that the specified interface is blocked when a fault is rectified.
  2. Configure the Layer 2 forwarding function on CE1, CE2, and Router1 to Router4.

Procedure

  1. Configure basic SEP functions.

    • Configure SEP segment 1 and control VLAN 10.

      # Configure Router1.
      <Huawei> system-view
      [Huawei] sysname Router1
      [Router1] sep segment 1
      [Router1-sep-segment1] control-vlan 10
      [Router1-sep-segment1] quit
      # Configure Router2.
      <Huawei> system-view
      [Huawei] sysname Router2
      [Router2] sep segment1
      [Router2-sep-segment1] control-vlan 10
      [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] quit
      # Configure Router4.
      <Huawei> system-view
      [Huawei] sysname Router4
      [Router4] sep segment 1
      [Router4-sep-segment1] control-vlan 10
      [Router4-sep-segment1] quit
    • Configure SEP segment 2 and control VLAN 10.

      # Configure Router1.
      [Router1] sep segment 2
      [Router1-sep-segment2] control-vlan 10
      [Router1-sep-segment2] quit
      # Configure Router2.
      [Router2] sep segment2
      [Router2-sep-segment2] control-vlan 10
      [Router2-sep-segment2] quit
      # Configure Router3.
      [Router3] sep segment 2
      [Router3-sep-segment2] control-vlan 10
      [Router3-sep-segment2] quit
      # Configure Router4.
      [Router4] sep segment 2
      [Router4-sep-segment2] control-vlan 10
      [Router4-sep-segment2] quit
    NOTE:
    • The control VLAN must be a new one.
    • The command used to create a common VLAN is automatically displayed in a configuration file.
    • Each SEP segment must be configured with a control VLAN. After being added to a SEP segment configured with a control VLAN, an interface is added to the control VLAN automatically. You do not need to run the port trunk allow-pass vlan command. In the configuration file, the port trunk allow-pass vlan command, however, is displayed in the view of the interface added to the SEP segment.

  2. Configure SEP protected instances, and configure mappings between SEP protected instances and user VLANs.

    # Configure Router1.
    [Router1] vlan batch 100 to 500
    [Router1] sep segment 1
    [Router1-sep-segment1] protected-instance 1
    [Router1-sep-segment1] quit
    [Router1] sep segment 2
    [Router1-sep-segment2] protected-instance 2
    [Router1-sep-segment2] quit
    [Router1] stp region-configuration
    [Router1-mst-region] instance 1 vlan 100 to 300
    [Router1-mst-region] instance 2 vlan 301 to 500
    [Router1-mst-region] active region-configuration
    [Router1-mst-region] quit

    The configurations of Router2 to Router4 are similar to that of Router1, and are not mentioned here. For details, see the configuration files.

  3. Add all the devices on the ring network to the SEP segments and configure interface roles.

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

  4. Specify an interface to block.

    # Configure delayed preemption and block an interface based on the device and interface names on Router1 where the primary edge interface is located.
    [Router1] sep segment 1
    [Router1-sep-segment1] block port sysname Router3 interface gigabitethernet 7/0/1
    [Router1-sep-segment1] preempt delay 15
    [Router1-sep-segment1] quit
    [Router1] sep segment 2
    [Router1-sep-segment2] block port sysname Router2 interface gigabitethernet 7/0/1
    [Router1-sep-segment2] preempt delay 15
    [Router1-sep-segment2] quit
    NOTE:
    • In this configuration example, an interface fault needs to be simulated and then rectified to implement delayed preemption. To ensure that delayed preemption takes effect on the two SEP segments, simulate an interface fault in the two SEP segments. For example:
      • In SEP segment 1, run the shutdown command on GE 7/0/1 of Router2 to simulate an interface fault. Then, run the undo shutdown command on GE7/0/1 to simulate interface fault recovery.
      • In SEP segment 2, run the shutdown command on GE 7/0/1 of Router3 to simulate an interface fault. Then, run the undo shutdown command on GE7/0/1 to simulate interface fault recovery.

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

    The configuration details are not mentioned here. For details, see the configuration files.

  6. Verify the configuration.

    # Simulate a fault, and then check whether the status of the blocked interface changes from blocked to forwarding.

    # Run the shutdown command on GE7/0/1 of Router2 to simulate an interface fault.

    # Run the display sep interface command on Router3 to check whether the status of GE7/0/1 in SEP segment 1 changes from blocked to forwarding.

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

    # The preceding command output shows that the status of GE7/0/1 changes from blocked to forwarding and the forwarding path change in SEP segment 1 does not affect the forwarding path in SEP segment 2.

Configuration Files

  • Configuration file of Router1

    #
     sysname Router1
    #
    vlan batch 10 100 to 500
    #
     stp region-configuration
      instance 1 vlan 100 to 300
      instance 2 vlan 301 to 500
      active region-configuration
    #
    sep segment 1
     control-vlan 10
     block port sysname Router3 interface GigabitEthernet7/0/1
     preempt delay 15
     protected-instance 1
    sep segment 2
     control-vlan 10
     block port sysname Router2 interface GigabitEthernet7/0/1
     preempt delay 15
     protected-instance 2
    #
    interface GigabitEthernet7/0/1
     port hybrid tagged vlan 10 100 to 500
     stp disable
     sep segment 1 edge primary
     sep segment 2 edge primary
    #
    interface GigabitEthernet7/0/3
     port hybrid tagged vlan 10 100 to 500
     stp disable
     sep segment 1 edge secondary
     sep segment 2 edge secondary
    #
    return
  • Configuration file of Router2

    #
     sysname Router2
    #
    vlan batch 10 100 to 500
    #
     stp region-configuration
      instance 1 vlan 100 to 300
      instance 2 vlan 301 to 500
      active region-configuration
    #
    sep segment 1
     control-vlan 10
     protected-instance 1
    sep segment 2
     control-vlan 10
     protected-instance 2
    #
    interface GigabitEthernet7/0/1
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    interface GigabitEthernet7/0/2
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    interface GigabitEthernet7/0/3
     port hybrid  tagged vlan 100 to 300
    #
    return
  • Configuration file of Router3

    #
     sysname Router3
    #
    vlan batch 10 100 to 500
    #
     stp region-configuration
      instance 1 vlan 100 to 300
      instance 2 vlan 301 to 500
      active region-configuration
    #
    sep segment 1
     control-vlan 10
     protected-instance 1
    sep segment 2
     control-vlan 10
     protected-instance 2
    #
    interface GigabitEthernet7/0/1
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    interface GigabitEthernet7/0/2
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    interface GigabitEthernet7/0/3
     port hybrid  tagged vlan 301 to 500
    #
    return
  • Configuration file of Router4

    #
     sysname Router4
    #
    vlan batch 10 100 to 500
    #
     stp region-configuration
      instance 1 vlan 100 to 300
      instance 2 vlan 301 to 500
      active region-configuration
    #
    sep segment 1
     control-vlan 10
     protected-instance 1
    sep segment 2
     control-vlan 10
     protected-instance 2
    #
    interface GigabitEthernet7/0/1
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    interface GigabitEthernet7/0/3
     port hybrid  tagged vlan 10 100 to 500
     stp disable
     sep segment 1
     sep segment 2
    #
    return
  • Configuration file of CE1

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

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

Document ID: EDOC1000174108

Views: 55045

Downloads: 40

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