l2-loop-detect action trap disable

Function

The l2-loop-detect action trap disable command disables the system from sending a trap after detecting a Layer 2 loop.

The undo l2-loop-detect action trap disable command enables the system to send a trap after detecting a Layer 2 loop.

By default, the system will send a trap after detecting a Layer 2 loop.

Format

l2-loop-detect action trap disable

undo l2-loop-detect action trap disable

Parameters

Parameter Description Value
trap

Sending a trap after the system detects a Layer 2 loop.

-

Views

Slot view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
device-mgr write

Usage Guidelines

Usage Scenario

The CPU determines whether to enable or disable Layer 2 loop detection based on packet loss caused by the CAR. After Layer 2 loop detection is enabled, the CPU will take the configured action in response to Layer 2 loops after the system detects an existing or a potential loop on an interface.

The system can be configured to take one of the following actions in response to an existing or possible Layer 2 loop on an interface:

  • Shut down the interface: The system will shut down the interface only after detecting an existing Layer 2 loop on the interface. This action stops the interface from sending numerous packets to the CPU.
  • Send a trap: The system will send a trap after detecting an existing or a potential Layer 2 loop. The trap message can help a user locate the interface where the Layer 2 loop has occurred or may occur.
  • Send a trap and shut down the interface: The system will send a trap and shut down the interface after detecting an existing Layer 2 loop on the interface.
  • Ignore Layer 2 loops: The system will generate a log, but not shut down the interface or send a trap.

    To enable the system to send a trap after detecting a Layer 2 loop, run the undo l2-loop-detect action trap disable command.

Precautions

Whether the preceding actions are configured, the system will generate a log after detecting an existing or a potential Layer 2 loop.

In VS mode, this command is supported only by the admin VS.

Example

# Disable the system from sending a trap on the board in slot 1 after a loop is detected.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] l2-loop-detect action trap disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >