< Home

Example for Configuring MAD in Relay Mode

Configuration Requirements

As shown in Figure 1, SwitchA, SwitchB, and SwitchC set up a stack and they connect to SwitchD through Eth-Trunk1.

MAD can be used to detect dual master switches with the same configuration on the network to reduce the impact of a stack split on the network.

Figure 1 Networking of MAD in relay mode

Configuration Roadmap

  1. On the stack, configure MAD in relay mode on the inter-device Eth-Trunk.
  2. On the relay agent, configure the MAD relay function so that MAD packets can be forwarded through the Eth-Trunk.

Procedure

  1. On the stack, configure MAD in relay mode on the inter-device Eth-Trunk.

    <HUAWEI> system-view
    [HUAWEI] interface eth-trunk 1
    [HUAWEI-Eth-Trunk1] mad detect mode relay
    [HUAWEI-Eth-Trunk1] quit
    [HUAWEI] interface gigabitethernet 0/0/5
    [HUAWEI-GigabitEthernet0/0/5] eth-trunk 1
    [HUAWEI-GigabitEthernet0/0/5] quit
    [HUAWEI] interface gigabitethernet 1/0/5
    [HUAWEI-GigabitEthernet1/0/5] eth-trunk 1
    [HUAWEI-GigabitEthernet1/0/5] quit
    [HUAWEI] interface gigabitethernet 2/0/5
    [HUAWEI-GigabitEthernet2/0/5] eth-trunk 1
    [HUAWEI-GigabitEthernet2/0/5] quit
    [HUAWEI] quit

  2. Configure the MAD relay function on the relay agent.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchD
    [SwitchD] interface eth-trunk 1
    [SwitchD-Eth-Trunk1] mad relay
    [SwitchD-Eth-Trunk1] quit
    [SwitchD] interface gigabitethernet 0/0/1
    [SwitchD-GigabitEthernet0/0/1] eth-trunk 1
    [SwitchD-GigabitEthernet0/0/1] quit
    [SwitchD] interface gigabitethernet 0/0/2
    [SwitchD-GigabitEthernet0/0/2] eth-trunk 1
    [SwitchD-GigabitEthernet0/0/2] quit
    [SwitchD] interface gigabitethernet 0/0/3
    [SwitchD-GigabitEthernet0/0/3] eth-trunk 1
    [SwitchD-GigabitEthernet0/0/3] quit
    [SwitchD] quit

  3. Verify the configuration.

    # Check detailed MAD configuration of the stack.

    <HUAWEI> display mad verbose
    Current MAD domain: 0 
    Current MAD status: Detect                                                      
    Mad direct detect interfaces configured:                                
    Mad relay detect interfaces configured:                                 
     Eth-Trunk1                                                                  
    Excluded ports(configurable):                                                   
    Excluded ports(can not be configured):
     GigabitEthernet0/0/26                                          
     GigabitEthernet0/0/27
     GigabitEthernet1/0/26                                          
     GigabitEthernet1/0/27                                          
     GigabitEthernet2/0/26                                          
     GigabitEthernet2/0/27                                          
    

    # Check MAD relay configuration on SwitchD.

    <SwitchD> display mad proxy
    Mad relay interfaces configured:                                        
     Eth-Trunk1 
    

  4. Verify the MAD function.

    After the MAD function has been configured successfully:

    If no service is configured in the stack, perform the following steps to check whether the MAD function has been configured successfully:

    1. Enable the alarm display function in the user view.

      <HUAWEI> terminal monitor
      <HUAWEI> terminal trapping

    2. Simulate a stack split situation by removing the stack cables that connect SwitchB to SwitchC and SwitchC to SwitchA. If the stack is set up through service port connections, you can also run the shutdown interface command to shut down the physical member ports in the logical stack port view that connect SwitchB to SwitchC and SwitchC to SwitchA.
    3. After the stack splits, you can see the following alarm on the terminal: MAD/4/MULTIACTIVEDETECTED(t):OID 1.3.6.1.4.1.2011.5.25.246.1.1 Multi-active scenario is detected.
    4. Check whether the number of member switches decreases.

      Run the display device command, and you can see that the number of member switches decreases from 3 to 2. (In this example, the member switches are S5720-28P-LI-AC.)

      <HUAWEI> display device
      S5720-28P-LI-AC's Device status:
      Slot Sub  Type                Online    Power      Register     Status   Role
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      0    -   S5720-28P-LI         Present   PowerOn    Registered   Normal   Master
      1    -   S5720-28P-LI         Present   PowerOn    Registered   Normal   Standby

    5. The preceding operations verify that the MAD function has been configured successfully.
    6. Connect the stack cables again or run the undo shutdown command to enable the physical member ports, so that the stack can be set up again.
    7. After the stack is set up again, you can see the following alarm on the terminal: MAD/4/MULTIACTIVEMERGE(t):OID 1.3.6.1.4.1.2011.5.25.246.1.2 Multi-active scenario is merged.
    8. Check whether the number of member switches restores to the original value.

      Run the display device command, and you can see that the number of member switches changes to 3. (In this example, the member switches are S5720-28P-LI-AC.)

      <HUAWEI> display device
      S5720-28P-LI-AC's Device status:
      Slot Sub  Type                Online    Power      Register     Status   Role
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      0    -   S5720-28P-LI         Present   PowerOn    Registered   Normal   Master
      1    -   S5720-28P-LI         Present   PowerOn    Registered   Normal   Standby
      2    -   S5720-28P-LI         Present   PowerOn    Registered   Normal   Slave

Configuration Files

  • Stack configuration file

    #
    interface Eth-Trunk1
     mad detect mode relay
    #
    interface GigabitEthernet0/0/5
     eth-trunk 1 
    #
    interface GigabitEthernet1/0/5
     eth-trunk 1 
    #
    interface GigabitEthernet2/0/5
     eth-trunk 1 
    #
    return
  • SwitchD configuration file

    #
    sysname SwitchD
    #
    interface Eth-Trunk1
     mad relay
    #
    interface GigabitEthernet0/0/1 
     eth-trunk 1 
    #
    interface GigabitEthernet0/0/2
     eth-trunk 1 
    #
    interface GigabitEthernet0/0/3
     eth-trunk 1 
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >