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

Configuration Guide - Device Management

S1720, S2700, S5700, and S6720 V200R011C10

This document describes the principles and configurations of the Device Management features, and provides configuration examples of these features.
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).
Configuring MAD

Configuring MAD

Context

MAD detects multiple master switches after a stack splits.

NOTE:

You are advised to configure MAD to minimize the impact of a stack split on services.

Configuration Procedure

Table 9-30 describes the MAD configuration procedure.

Table 9-30  MAD configuration process
No. Task Description Scenario Remarks

1

Configuring MAD in Direct Mode

You can configure MAD in direct mode to perform MAD through dedicated direct links between member switches.

Configure MAD in direct mode when member switches in a stack have idle ports. Use common cables to connect these ports and use the ports for MAD only.

The direct and relay modes cannot be configured simultaneously in a stack.

By default, MAD is not configured on a device.

2

Configuring MAD in Relay Mode

You can configure MAD in relay mode to perform MAD through the relay agent between member switches.

Configure MAD in relay mode when stack Eth-Trunk is configured in a stack. In relay mode, the MAD relay detection is set on Eth-Trunk ports of the stack, and the MAD relay function is enabled on a relay agent. In contrast with the direct mode, the relay mode does not occupy additional ports.

The relay mode can be implemented in two ways: configuring a single switch as the MAD relay agent or configuring two stack systems as MAD relay agents for each other.

3

(Optional) Configuring Reserved Ports

You can configure a reserved port to forward service packets when a stack splits.

When MAD detects a stack split, multiple stacks compete with each other. You must shut down all service ports on member switches that fail in the competition, to avoid MAC address or IP address conflict.The ports that only transparently transmit packets do not affect network operations when a stack splits. You can configure these ports as reserved ports to ensure normal packet transmission on them. MAD does not shut down service transmission on these ports when it detects a stack split.

-

4

(Optional) Restoring Shutdown Ports to the Up State

You can restore a shutdown port to the Up state to allow the stack in the Recovery state to work when the stack in the Detect state fails.

When MAD detects a stack split, multiple stacks compete with each other. The stack that wins the competition remains in the Detect state (normal working state) and the stacks that fail the competition enter the Recovery state (disabled state). In the Recovery state, all the service ports except reserved ports on member switches are shut down, so the stacks do not forward service packets. You can restore shutdown ports to the Up state so that the stacks in Recovery state can work again. For example, if the stack in Detect state fails or is removed from the network before the stack fault is rectified, restore the shutdown ports in a stack in the Recovery state to the Up state, so that the stack in the Recovery state can take over services from the original active stack. This minimizes the impact of a stack fault on services.

Perform this configuration when the stack in the Detect state fails. When the stack in the Detect state is working normally, do not perform this configuration.

Guidelines

  • MAD in direct mode can only be configured on Layer 2 Ethernet ports in Up state.

  • You can configure a maximum of eight direct detection links for each member switch in a stack to improve detection reliability. Ensure that one direct detection link on each member switch in a stack works normally when multiple master switches coexist.

  • MAD is a Huawei proprietary protocol, and Huawei S series switches support the MAD relay function.

  • You can configure the relay mode on a maximum of four Eth-Trunks in a stack to improve detection reliability. Ensure that one Eth-Trunk in each stack works normally when multiple master switches coexist.

  • When configuring MAD in relay mode, ensure that member switches in a stack use different MAC addresses. If they use the same MAC address, the proxy device cannot forward MAD packets.

Procedure

  1. Configure MAD in direct or relay mode.

    • Configure MAD in direct mode.
      1. Run the system-view command to enter the system view.
      2. Run the interface interface-type interface-number command to enter the interface view.
      3. Run the mad detect mode direct command to configure MAD in direct mode.
      NOTE:
      • MAD packets are bridge protocol data units (BPDUs). If MAD is performed through dedicated direct links between member switches and an intermediate device, configure port-based Layer 2 protocol transparent transmission on the intermediate device. For details, see Configuring Interface-based Layer 2 Protocol Transparent Transmission in "Layer 2 Protocol Transparent Transmission Configuration" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Ethernet Switching.
      • After MAD in direct mode is configured on an interface, the STP status of the interface becomes Discarding, affecting the transmission of data packets and some protocol packets. Therefore, do not configure other services on this interface.

    • Configure MAD in relay mode.
      • Switch functioning as the relay device
        • In the stack
          1. Run the system-view command to enter the system view.
          2. Run the interface eth-trunk trunk-id command to enter the Eth-Trunk interface view.
          3. Run the mad detect mode relay command to configure MAD in relay mode on the Eth-Trunk.
        • On the specified relay device
          1. Run the system-view command to enter the system view.
          2. Run the interface eth-trunk trunk-id command to enter the Eth-Trunk interface view.
          3. Run the mad relay command to enable the relay function on the Eth-Trunk.
      • Two stack systems functioning as relay of each other
        • In each stack
          1. Run the system-view command to enter the system view.
          2. Run the mad domain domain-id command to specify the MAD domain ID for a stack.

            By default, the MAD domain ID of a stack is 0.

            NOTE:

            Two stack systems can function as proxy of each other to implement MAD. The two stack systems must be configured with different MAD domain IDs.

          3. Run the interface eth-trunk trunk-id command to enter the Eth-Trunk interface view.
          4. Run the mad relay command to enable the relay function on the Eth-Trunk.
          5. Run the mad detect mode relay command to configure MAD in relay mode on the Eth-Trunk.

  2. Run the quit command to return to the system view.
  3. (Optional) Run the mad exclude interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> command to configure specified ports in a stack as reserved ports.

    By default, only physical member ports of a stack are reserved ports, and all service ports are non-reserved ports.

    The port used for MAD does not need to be specified as a reserved port. After a stack splits, the port used for MAD will also be shut down.

  4. (Optional) Run the mad restore command to restore shutdown ports to the Up state.

    NOTE:

    Do not run this command when the stack in the Detect state is working normally. Otherwise, there will be multiple master switches on the network after the stack in the Recovery state is enabled.

    If the stack in the Detect state is merged with the stack in the Recovery state, the new stack remains in Recovery state. You need to run the mad restore command to restore shutdown ports to the Up state.

Verifying the Configuration

Run the display mad [ proxy | verbose ] command to view the MAD configuration.

Translation
Download
Updated: 2019-09-23

Document ID: EDOC1000178167

Views: 205988

Downloads: 989

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