< Home

mad detect mode direct

Function

The mad detect mode direct command configures multi-active detection (MAD) in direct mode on an interface.

The undo mad detect command cancels the configuration.

By default, MAD in direct mode is disabled on an interface.

Format

mad detect mode direct

undo mad detect [ mode direct ]

Parameters

None

Views

GE interface view, XGE interface view, 25GE interface view, 40GE interface view, port group view, MultiGE interface view, 100GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To ensure that only one switch becomes the master switch after a stack splits, thereby enhancing stack stability, run the mad detect mode direct command to configure MAD in direct mode on an interface.

Configuration Impact

Configuring MAD in direct mode on an interface blocks the interface. Disabling MAD in direct mode on an interface restores the forwarding function of the interface. If a loop exists on the network, a broadcast storm occurs.

Precautions

The undo mad detect command is not supported in the port group view. You can only run the undo mad detect mode direct command in the port group view to disable MAD in direct mode.

Example

# Configure MAD in direct mode on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] mad detect mode direct
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >