Example: Configuring multiple smart link groups load sharing

Network configuration

As shown in Figure 39:

Figure 39: Network diagram

Procedure


[IMPORTANT: ]

IMPORTANT:

By default, interfaces on the device are disabled (in ADM or Administratively Down state). To have an interface operate, you must use the undo shutdown command to enable that interface.


  1. Configure Device C:

    # Create VLAN 1 through VLAN 200.

    <DeviceC> system-view
    [DeviceC] vlan 1 to 200
    

    # Map VLANs 1 through 100 to MSTI 1, and VLANs 101 through 200 to MSTI 2.

    [DeviceC] stp region-configuration
    [DeviceC-mst-region] instance 1 vlan 1 to 100
    [DeviceC-mst-region] instance 2 vlan 101 to 200
    

    # Activate the MST region configuration.

    [DeviceC-mst-region] active region-configuration
    [DeviceC-mst-region] quit
    

    # Shut down FortyGigE 1/0/1.

    [DeviceC] interface fortygige 1/0/1
    [DeviceC-FortyGigE1/0/1] shutdown
    

    # Disable the spanning tree feature on the port.

    [DeviceC-FortyGigE1/0/1] undo stp enable
    

    # Configure the port as a trunk port.

    [DeviceC-FortyGigE1/0/1] port link-type trunk
    

    # Assign the port to VLAN 1 through VLAN 200.

    [DeviceC-FortyGigE1/0/1] port trunk permit vlan 1 to 200
    [DeviceC-FortyGigE1/0/1] quit
    

    # Configure FortyGigE 1/0/2 in the same way FortyGigE 1/0/1 is configured.

    [DeviceC] interface fortygige 1/0/2
    [DeviceC-FortyGigE1/0/2] shutdown
    [DeviceC-FortyGigE1/0/2] undo stp enable
    [DeviceC-FortyGigE1/0/2] port link-type trunk
    [DeviceC-FortyGigE1/0/2] port trunk permit vlan 1 to 200
    [DeviceC-] quit
    

    # Create smart link group 1, and configure all VLANs mapped to MSTI 1 as the protected VLANs for smart link group 1.

    [DeviceC] smart-link group 1
    [DeviceC-smlk-group1] protected-vlan reference-instance 1
    

    # Configure as the primary port and FortyGigE 1/0/2 as the secondary port for smart link group 1.

    [DeviceC-smlk-group1] port fortygige 1/0/1 primary
    [DeviceC-smlk-group1] port fortygige 1/0/2 secondary
    

    # Enable role preemption in smart link group 1, enable flush message sending, and configure VLAN 10 as the transmit control VLAN.

    [DeviceC-smlk-group1] preemption mode role
    [DeviceC-smlk-group1] flush enable control-vlan 10
    [DeviceC-smlk-group1] quit
    

    # Create smart link group 2, and configure all VLANs mapped to MSTI 2 as the protected VLANs for smart link group 2.

    [DeviceC] smart-link group 2
    [DeviceC-smlk-group2] protected-vlan reference-instance 2
    

    # Configure FortyGigE 1/0/1 as the secondary port and as the primary port for smart link group 2.

    [DeviceC-smlk-group2] port fortygige 1/0/2 primary
    [DeviceC-smlk-group2] port  secondary
    

    # Enable role preemption in smart link group 2, enable flush message sending, and configure VLAN 110 as the transmit control VLAN.

    [DeviceC-smlk-group2] preemption mode role
    [DeviceC-smlk-group2] flush enable control-vlan 110
    [DeviceC-smlk-group2] quit
    

    # Bring up FortyGigE 1/0/1 and FortyGigE 1/0/2.

    [DeviceC] interface fortygige 1/0/1
    [DeviceC-FortyGigE1/0/1] undo shutdown
    [DeviceC-FortyGigE1/0/1] quit
    [DeviceC] interface fortygige 1/0/2
    [DeviceC-FortyGigE1/0/2] undo shutdown
    [DeviceC-FortyGigE1/0/2] quit
    
  2. Configure Device B:

    # Create VLAN 1 through VLAN 200.

    <DeviceB> system-view
    [DeviceB] vlan 1 to 200
    

    # Configure FortyGigE 1/0/1 as a trunk port.

    [DeviceB] interface fortygige 1/0/1
    [DeviceB-] port link-type trunk
    

    # Assign the port to VLANs 1 through 200.

    [DeviceB-FortyGigE1/0/1] port trunk permit vlan 1 to 200
    

    # Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on the port.

    [DeviceB-FortyGigE1/0/1] smart-link flush enable control-vlan 10 110
    [DeviceB-FortyGigE1/0/1] quit
    

    # Configure FortyGigE 1/0/2 as a trunk port.

    [DeviceB] interface fortygige 1/0/2
    [DeviceB-FortyGigE1/0/2] port link-type trunk
    

    # Assign the port to VLANs 1 through 200.

    [DeviceB-FortyGigE1/0/2] port trunk permit vlan 1 to 200
    

    # Disable the spanning tree feature on the port.

    [DeviceB-] undo stp enable
    

    # Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on the port.

    [DeviceB-FortyGigE1/0/2] smart-link flush enable control-vlan 10 110
    [DeviceB-FortyGigE1/0/2] quit
    
  3. Configure Device D:

    # Create VLAN 1 through VLAN 200.

    <DeviceD> system-view
    [DeviceD] vlan 1 to 200
    

    # Configure FortyGigE 1/0/1 as a trunk port.

    [DeviceD] interface fortygige 1/0/1
    [DeviceD-FortyGigE1/0/1] port link-type trunk
    

    # Assign the port to VLANs 1 through 200.

    [DeviceD-FortyGigE1/0/1] port trunk permit vlan 1 to 200
    

    # Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on the port.

    [DeviceD-FortyGigE1/0/1] smart-link flush enable control-vlan 10 110
    [DeviceD-FortyGigE1/0/1] quit
    

    # Configure FortyGigE 1/0/2 as a trunk port.

    [DeviceD] interface fortygige 1/0/2
    [DeviceD-FortyGigE1/0/2] port link-type trunk
    

    # Assign the port to VLANs 1 through 200.

    [DeviceD-FortyGigE1/0/2] port trunk permit vlan 1 to 200
    

    # Disable the spanning tree feature on the port.

    [DeviceD-FortyGigE1/0/2] undo stp enable
    

    # Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on the port.

    [DeviceD-FortyGigE1/0/2] smart-link flush enable control-vlan 10 110
    [DeviceD-] quit
    
  4. Configure Device A:

    # Create VLAN 1 through VLAN 200.

    <DeviceA> system-view
    [DeviceA] vlan 1 to 200
    

    # Configure FortyGigE 1/0/1 as a trunk port.

    [DeviceA] interface 
    [DeviceA-FortyGigE1/0/1] port link-type trunk
    

    # Assign the port to VLANs 1 through 200.

    [DeviceA-FortyGigE1/0/1] port trunk permit vlan 1 to 200
    

    # Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control VLANs on the port.

    [DeviceA-FortyGigE1/0/1] smart-link flush enable control-vlan 10 110
    [DeviceA-FortyGigE1/0/1] quit
    

    # Configure FortyGigE 1/0/2 in the same way FortyGigE 1/0/1 is configured.

    [DeviceA] interface fortygige 1/0/2
    [DeviceA-FortyGigE1/0/2] port link-type trunk
    [DeviceA-FortyGigE1/0/2] port trunk permit vlan 1 to 200
    [DeviceA-FortyGigE1/0/2] smart-link flush enable control-vlan 10 110
    [DeviceA-FortyGigE1/0/2] quit
    

Verifying the configuration

# Display the smart link group configuration on Device C.

[DeviceC] display smart-link group all
Smart link group 1 information:
  Device ID       : 000f-e23d-5af0
  Preemption mode : Role
  Preemption delay: 1(s)
  Control VLAN    : 10
  Protected VLAN  : Reference Instance 1

  Member                  Role      State   Flush-count     Last-flush-time
  -----------------------------------------------------------------------------
  FGE1/0/1                PRIMARY   ACTIVE  5               16:45:20 2012/04/21
  FGE1/0/2                SECONDARY STANDBY 1               16:37:20 2012/04/21

Smart link group 2 information:
  Device ID       : 000f-e23d-5af0
  Preemption mode : Role
  Preemption delay: 1(s)
  Control VLAN    : 110
  Protected VLAN  : Reference Instance 2

  Member                  Role      State   Flush-count     Last-flush-time
  -----------------------------------------------------------------------------
  FGE1/0/2                PRIMARY   ACTIVE  5               16:45:20 2012/04/21
  FGE1/0/1                SECONDARY STANDBY 1               16:37:20 2012/04/21

# Display the flush messages received on Device B.

[DeviceB] display smart-link flush
 Received flush packets                             : 5
 Receiving interface of the last flush packet       : FortyGigE1/0/2
 Receiving time of the last flush packet            : 16:25:21 2012/04/21
 Device ID of the last flush packet                 : 000f-e23d-5af0
 Control VLAN of the last flush packet              : 10