- Table of Contents
-
- 03-Layer 2 Command Reference
- 00-Preface
- 01-Ethernet Interface Commands
- 02-Loopback and Null Interface Commands
- 03-MAC Address Table Commands
- 04-Spanning Tree Commands
- 05-Loopback Detection Commands
- 06-VLAN Commands
- 07-Layer 2 Forwarding Commands
- 08-PPP Commands
- 09-Ethernet Link Aggregation Commands
- 10-DCC Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Loopback Detection Commands | 51.03 KB |
display loopback-detection
Use display loopback-detection to display the status of the loopback detection function.
Syntax
display loopback-detection [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Example
# Display the loopback detection status.
<Sysname> display loopback-detection
Loopback-detection is running.
Detection interval is 30 seconds.
No port is detected with loopback.
loopback-detection enable
Use loopback-detection enable to enable loopback detection.
Use undo loopback-detection enable to disable loopback detection.
Syntax
loopback-detection enable
undo loopback-detection enable
Default
The loopback detection function is disabled.
Views
System view
Default command level
2: System level
Parameters
vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID and ranges from 1 to 4094, and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters.
Example
# Enable loopback detection in system view.
<Sysname> system-view
[Sysname] loopback-detection enable
loopback-detection interval-time
Use loopback-detection interval-time to configure the loopback detection interval.
Use undo loopback-detection interval-time to restore the default.
Syntax
loopback-detection interval-time interval
undo loopback-detection interval-time
Default
The loopback detection interval is 30 seconds.
Views
System view
Default command level
2: System level
Parameters
interval: Sets the loopback detection interval in seconds from 5 to 300.
Example
# Set the loopback detection interval to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection interval-time 10
Related commands
display loopback-detection