<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] loopback internal
loopback-detection control enable
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet port view
Default Level
2: System level
Parameters
None
Description
Use the loopback-detection control enable command to enable loopback detection for a Trunk port
or Hybrid port.
Use the undo loopback-detection control enable command to restore the default.
By default, loopback detection for a Trunk port or Hybrid port is disabled.
When the loopback detection is enabled, if a port has been detected with loopback, it will be shut
down. A Trap message will be sent to the terminal and the corresponding MAC address
forwarding entries will be deleted.
When the loopback detection is disabled, if a port has been detected with loopback, a Trap
message will be sent to the terminal. The port is still working properly.
Note that this command is inapplicable to an Access port as its loopback detection is enabled by
default.
Examples
# Enable loopback detection for the trunk port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] loopback-detection enable
[Sysname-GigabitEthernet1/0/1] loopback-detection control enable
loopback-detection enable
Syntax
loopback-detection enable
undo loopback-detection enable
1-21