loopback-detection multi-port-mode enable

Syntax

loopback-detection multi-port-mode enable

undo loopback-detection multi-port-mode enable

View

System view

Default level

2: System level

Description

Use loopback-detection multi-port-mode enable to enable multi-port loopback detection.

Use undo loopback-detection multi-port-mode enable to restore the default.

By default, multi-port loopback detection is disabled.

If a device receives a packet that it sent out, a loop has occurred. Depending on whether the receiving interface is the same as the sending interface, loops include the following categories:

To enable multi-port loopback detection, configure the loopback-detection multi-port-mode enable and loopback-detection enable commands in system view, and the loopback-detection enable command in the view of the target interfaces.

Examples

# Enable multi-port loopback detection to monitor loops between Ethernet 1/0/1 and Ethernet 1/0/2.

<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] loopback-detection multi-port-mode enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] quit
[Sysname] interface ethernet 1/0/2
[Sysname-Ethernet1/0/2] loopback-detection enable