The l2-loop-detect action shutdown command enables the system to shut down the interface on which a Layer 2 loop is detected.
The undo l2-loop-detect action shutdown command disables the system from shutting down the interface on which a Layer 2 loop is detected.
By default, the system will not shut down the interface on which a Layer 2 loop is detected.
Parameter | Description | Value |
---|---|---|
up-times up-times |
Configures the maximum number of consecutive times that the system allows the Down interface to go Up in an interval. After the maximum number of consecutive times, the system will not automatically allow the Down interface to go Up. If you want the interface to go Up, you must manually reset the board where the interface resides. |
The value is an integer in the range 1 to 10. The default value is 5. |
up-interval up-interval |
Configure the initial interval between when the interface shuts down and when it goes to the Up state. Each interval between when the interface shuts down and when it goes to the Up state is twice as long as the previous interval. |
The value is an integer in the range 1 to 10, in minutes. The default value is 5 minutes. |
shutdown |
Enables the system to shut down the interface on which a Layer 2 loop is detected. |
- |
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: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.