![HP 3100 v2 Series Скачать руководство пользователя страница 31](http://html.mh-extra.com/html/hp/3100-v2-series/3100-v2-series_command-reference-manual_165751031.webp)
24
Examples
# Configure the access port Ethernet 1/0/1 to shut down when a loop is detected.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] loopback-detection action shutdown
# Configure the trunk port Ethernet 1/0/2 to shut down when a loop is detected.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/2
[Sysname-Ethernet1/0/2] port link-type trunk
[Sysname-Ethernet1/0/2] loopback-detection enable
[Sysname-Ethernet1/0/2] loopback-detection control enable
[Sysname-Ethernet1/0/2] loopback-detection action shutdown
loopback-detection control enable
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
None
Description
Use
loopback-detection control enable
to enable loopback detection control on trunk or hybrid
ports.
Use
undo loopback-detection control enable
to restore the default.
By default, loopback detection control is disabled on trunk and hybrid ports.
When a hybrid or trunk port detects a loop condition, it sends traps, whether loopback detection
control is enabled or not. However, only after loopback detection control is enabled will the port
perform the protective action configured with the
loopback-detection action
command.
This command is not applicable to access ports.
Examples
# Enable loopback detection control on the trunk port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] loopback-detection control enable