Parameter
Description
Related command:
Example
loopback-detection per-vlan enable
Syntax
View
Parameter
Description
Example
time: Time interval in seconds for port loopback detection, in the range of 5 to
300.
Use the
loopback-detection interval-time
interval for port loopback detection.
Use the
undo loopback-detection interval-time
default time interval for port loopback detection, which is 30 seconds.
display loopback-detection.
# Set the time interval for port loopback detection to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection interval-time 10
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
Ethernet interface view
None
Use the
loopback-detection per-vlan enable
detection in all VLANs with Trunk ports or Hybrid ports.
Use the
undo loopback-detection per-vlan enable
loopback detection in the default VLAN with Trunk ports or Hybrid ports.
By default, loopback detection is only enabled in the default VLAN(s) with Trunk
ports or Hybrid ports.
Note that the loopback-detection per-vlan enable command is not applicable
to access ports.
# Enable loopback detection in all VLANs to which the Hybrid port Ethernet 1/0
belong.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] loopback-detection enable
[Sysname-Ethernet1/0] port link-type trunk
[Sysname-Ethernet1/0] loopback-detection per-vlan enable
[Sysname-Ethernet1/0] loopback-detection per-vlan enable
command to configure time
command to restore the
command to enable loopback
command to enable
181