Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear loop-detect enhanced interface

date_range 07-Nov-24

Syntax

content_copy zoom_out_map
clear loop-detect enhanced interface
<interface-name>

Description

Restore a specified logical interface or all logical interfaces to their prior state after the device detects a loop and applies a configured action to break the loop.

You can configure loop detection on leaf devices for server-facing Layer 2 logical interfaces using the loop-detect statement in the [edit protocols] hierarchy. With that statement, you specify the action that the leaf device performs on the interface when it detects a loop, such as bringing the interface down. By default, the interface remains in the state imposed by the loop detection action until you run this command to manually restore the prior state. For example, if you configured the loop detection feature to bring the interface down upon detecting a loop, then this command brings the interface up again. You can also configure the revert-interval option to set a timer for after the loop condition has been repaired; when the timer expires, the device reverts the interface to its state prior to the loop detection action.

Use this command after you've repaired the loop condition to return the interface or interfaces to their prior state in either of these cases:

  • You didn't configure revert-interval. In this case, you must run this command to restore the interface state.

  • You want to restore the interface to its prior state before the configured revert-interval expires.

Options

interface-name

Logical interface to revert to the state prior to the loop detection action.

If you don't specify an interface name, this command defaults to restoring the state of all logical interfaces affected by the loop detection action.

Required Privilege Level

clear

Sample Output

clear loop-detect enhanced interface

content_copy zoom_out_map
user@host> clear loop-detect enhanced interface

user@host> 

clear loop-detect enhanced interface interface-name

content_copy zoom_out_map
user@host> clear loop-detect enhanced interface xe-0/0/10.0

user@host> 

Release Information

Command introduced in Junos OS Release 20.4R1.

footer-navigation