show loop-detect enhanced interface
Syntax
show loop-detect enhanced interface <interface-name>
Description
Display status information about leaf device logical interfaces with lightweight provider edge (PE) to customer edge (CE) loop detect enabled in a Layer 2 network. We also call this feature lightweight leaf to server loop detect, lightweight PE-CE loop detect, or enhanced loop detect.
You can configure the lightweight PE-CE loop detect feature on leaf devices for server-facing Layer 2 logical interfaces. With the configuration, you specify an action that the leaf device performs on the interface when it detects a loop, such as bringing the interface down. You can also configure an interval after which the device will automatically revert the interface to its state prior to the loop detect action following repair of the loop condition.
After you’ve enabled lightweight PE-CE loop detect, the interfaces periodically send multicast loop-detect protocol data units (PDUs). If the interface receives a loop detect PDU, which indicates a loop exists, the interface triggers the configured action to break the loop. The network administrator might then need to repair the conditions that caused the loop before reverting the interface to its state prior to loop detection. This command shows the configured loop dtect parameters, current interface status, and detail about the remote interface that formed the loop.
Beginning with Junos 24.4 we’ve added support for
monitoring all VLANs on a logical interface with the vlan-id all
configuration option at the [edit protocols loop-detect enhanced
interface] hierarchy level. With this option, the lightweight PE-CE loop detect feature
detects network loops across multiple VLANs and interfaces, improving network stability and
performance.
When you configure the loop-detect vlan-id all option, the show loop-detect enhanced
interface command:
-
Displays
allin theVlan-idoutput field. -
Displays
VlanandLoop on other vlansas additional loop detect fields under theCurrent statusfield.
See Feature Explorer for the platforms that support lightweight PE-CE loop detect, as follows:
-
Lightweight PE-CE Loop Detection on EVPN-VXLAN Fabrics—Support for lightweight PE-CE loop dect
-
Lightweight Loop Detection with Scale—Support for lightweight PE-CE loop detect with the
vlan-id alloption
Options
| interface-name |
Display loop detect status for the specified logical interface. If you don't specify an interface name, this command displays loop detect status for all logical interfaces that have this feature enabled. |
Required Privilege Level
view
Output Fields
| Field Name | Field Description |
|---|---|
|
Interface |
Local interface name with loop detect configured. |
|
Vlan-id |
|
|
ESI |
Ethernet Segment ID (ESI) associated with the local interface. |
|
Current status |
Current status of the interface—Loop-detected or Normal [Link Up] (no loop detected) This output section displays the following additional fields if the interface detected a loop. These fields describe the interface that routed loop detect PDUs back to the local interface:
Configuring Scaled Loop Detection using the loop-detect vlan-id all option adds the following fields.
Note:
The interface causing the loop might be on the same local device or on a remote device. |
|
Last loop-detect time |
Timestamp when the device initially detected the loop and changed the interface status to Loop-detected. When the interface has no |
|
Receive statistics |
Number of loop detect PDUs received since the current loop detect period timestamp. |
|
Action configured |
The configured action that the device triggers upon loop detection. |
|
Action count |
Cumulative count of loop detect actions triggered on the local interface. |
|
Transmit Interval |
Default or configured interval at which the interface sends loop detect PDUs. |
|
Revert Interval |
Configured interval after the loop condition is repaired in which the interface state reverts to the previous state before the loop detect action occurred. |
Sample Output
- show loop-detect enhanced interface interface-name (no loop detected)
- show loop-detect enhanced interface interface-name (loop detected)
- show loop-detect enhanced interface (EX4300-48MP, all interfaces configured with loop detect)
- show loop-detect enhanced interface (ACX7100-32C, ACX7100-48L, all interfaces configured with loop detect, no loop detected)
- show loop-detect enhanced interface (ACX7100-32C, ACX7100-48L, all interfaces configured with loop detect, loop detected)
- show loop-detect enhanced interface interface-name (Lightweight PE-CE Loop Detect
with Scale [
loop-detect vlan-id all] configured, no loop detected) - show loop-detect enhanced interface interface-name (Lightweight PE-CE Loop Detect
with Scale [
loop-detect vlan-id all] configured, loop detected)
show loop-detect enhanced interface interface-name (no loop detected)
user@host> show loop-detect enhanced interface xe-0/0/12.0
Interface :xe-0/0/12.0 Vlan-id :100 ESI :00:00:00:00:00:00:00:00:00:00 Current status :Normal[Link Up] Last loop-detect time :- Receive statistics :0 Action configured :Interface-down Action count :0 Transmit Interval :1s Revert Interval :60s
show loop-detect enhanced interface interface-name (loop detected)
user@host> show loop-detect enhanced interface xe-0/0/12.0
Interface :xe-0/0/12.0
Vlan-id :100
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Loop-detected
Remote Host :leaf04
Remote Chassis :ab:cd:ef:12:34:56
Remote Interface :xe-0/0/12.0
Remote ESI :00:00:00:00:00:00:00:00:00:00
Last loop-detect time :Tue Oct 20 04:36:37 2020
Receive statistics :4
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :60s
show loop-detect enhanced interface (EX4300-48MP, all interfaces configured with loop detect)
user@host> show loop-detect enhanced interface
Interface :ae60.0
Vlan-id :104
ESI :00:00:00:00:e1:06:06:06:06:00
Current status :Loop-detected
Remote Host :host-A
Remote Chassis :aa:bb:cc:cc:ee:fa
Remote Interface :ae65.0
Remote ESI :00:00:00:00:e1:06:06:06:06:00
Last loop-detect time :Wed Dec 23 23:20:26 2020
Receive statistics :1624
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :220s
Interface :mge-0/0/31.0
Vlan-id :101
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Loop-detected
Remote Host :host-B
Remote Chassis :aa:bb:cc:cc:ee:fb
Remote Interface :mge-0/0/32.0
Remote ESI :00:00:00:00:00:00:00:00:00:00
Last loop-detect time :Wed Dec 23 23:20:25 2020
Receive statistics :1625
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :300s
Interface :mge-0/0/32.0
Vlan-id :101
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Loop-detected
Remote Host :host-B
Remote Chassis :aa:bb:cc:cc:ee:fb
Remote Interface :mge-0/0/31.0
Remote ESI :00:00:00:00:00:00:00:00:00:00
Last loop-detect time :Wed Dec 23 23:20:25 2020
Receive statistics :1625
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :270s
Interface :mge-0/0/41.0
Vlan-id :105
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Loop-detected
Remote Host :host-A
Remote Chassis :aa:bb:cc:cc:ee:fa
Remote Interface :xe-0/0/6.0
Remote ESI :00:00:00:00:00:00:00:00:00:00
Last loop-detect time :Wed Dec 23 23:20:24 2020
Receive statistics :1626
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :240s
show loop-detect enhanced interface (ACX7100-32C, ACX7100-48L, all interfaces configured with loop detect, no loop detected)
user@host> show loop-detect enhanced interface
Interface :xe-0/0/12.0
Vlan-id :100
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Normal[Link Up]
Last loop-detect time :-
Receive statistics :0
Action configured :Interface-down
Action count :0
Transmit Interval :1s
Revert Interval :60s
show loop-detect enhanced interface (ACX7100-32C, ACX7100-48L, all interfaces configured with loop detect, loop detected)
user@host> show loop-detect enhanced interface Interface :xe-0/0/12.0 Vlan-id :100 ESI :00:00:00:00:00:00:00:00:00:00 Current status :Loop-detected Remote Host :leaf04 Remote Chassis :94:f7:ad:94:dd:40 Remote Interface :xe-0/0/12.0 Remote ESI :00:00:00:00:00:00:00:00:00:00 Last loop-detect time :Tue May 26 04:36:37 2020 Receive statistics :4 Action configured :Interface-down Action count :1 Transmit Interval :1s Revert Interval :60s
show loop-detect enhanced interface interface-name (Lightweight PE-CE Loop Detect with Scale [loop-detect vlan-id all] configured, no loop detected)
user@host> show loop-detect enhanced interface Interface :xe-0/0/12.0 Vlan-id :all ESI :00:00:00:00:00:00:00:00:00:00 Current status :Normal[Link Up] Last loop-detect time :- Receive statistics :0 Action configured :Interface-down Action count :0 Transmit Interval :1s Revert Interval :60s
show loop-detect enhanced interface interface-name (Lightweight PE-CE Loop Detect with Scale [loop-detect vlan-id all] configured, loop detected)
Scale loop-detect session example with a loop first detected on vlan-id 5 and loops also detected on vlan-ids 2, 6 and 7.
-
The
Current status: Vlanfield shows the vlan-id of the first loop detected on this logical interface. -
The
Current status: Loop on other vlansfield shows other vlan-ids with loops detected on this logical interface.
user@host> show loop-detect enhanced interface
Interface :xe-0/0/12.0
Vlan-id :all
ESI :00:00:00:00:00:00:00:00:00:00
Current status :Loop-detected
Remote Host :leaf04
Remote Chassis :94:f7:ad:94:dd:40
Remote Interface :xe-0/0/12.0
Remote ESI :00:00:00:00:00:00:00:00:00:00
Last loop-detect time :Tue May 26 04:36:37 2020
Receive statistics :4
Vlan :5
Loop on other vlans :2,6-7
Last loop-detect time :Tue May 26 04:36:37 2020
Receive statistics :4
Action configured :Interface-down
Action count :1
Transmit Interval :1s
Revert Interval :60s
Release Information
Command introduced in Junos OS Release 20.4R1.