
31
Related commands:
loopback-detection enable
,
loopback-detection interval-time
,
loopback-detection
control enable
,
loopback-detection per-vlan enable
, and
loopback-detection action
.
NOTE:
To enable multi-port loopback detection, you must 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 related interfaces.
Examples
# Enable multi-port loopback detection to monitor loops between GigabitEthernet 1/0/1 and
GigabitEthernet 1/0/2.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] loopback-detection multi-port-mode enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] loopback-detection enable
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] loopback-detection enable
loopback-detection per-vlan enable
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
None
Description
Use the
loopback-detection per-vlan enable
command to enable loopback detection in each VLAN on
trunk or hybrid ports.
Use the
undo loopback-detection per-vlan enable
command to disable loopback detection in all but the
default VLAN on trunk or hybrid ports.
By default, a trunk port or hybrid port performs loopback detection only in its default VLAN.
The
loopback-detection per-vlan enable
command is not applicable to access ports.
Examples
# Enable loopback detection in all VLANs on hybrid port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] loopback-detection enable
[Sysname-GigabitEthernet1/0/1] port link-type trunk