R3303-HP HSR6800 Routers Interface Command Reference

Table Of Contents
41
Examples
# Set the loopback detection interval to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection interval-time 10
Related commands
display loopback-detection
loopback-detection multi-port-mode enable
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.
Syntax
loopback-detection multi-port-mode enable
undo loopback-detection multi-port-mode enable
Default
Multi-port loopback detection is disabled.
Views
System view
Default command level
2: System level
Usage guidelines
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 single-port loops and multi-port loops:
Single-port loop—Occurs when an interface receives a packet that it sent out and the receiving
interface is the same as the sending interface.
Multi-port loop—Occurs when a device receives a packet that it sent out but the receiving interface
might not be the same as the sending interface.
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 GigabitEthernet 4/0/1 and
GigabitEthernet 4/0/2.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] loopback-detection multi-port-mode enable
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] loopback-detection enable
[Sysname-GigabitEthernet4/0/1] quit
[Sysname] interface gigabitethernet 4/0/2
[Sysname-GigabitEthernet4/0/2] loopback-detection enable