Setting loopback detection for an ethernet port, Setting loopback detection for an ethernet port -9 – H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 124
15-9
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a port group or enter the specified port group view
port-group
group-id Required
Add an Ethernet port to a specified port group
port interface-list
Required
A port can not be added to a port group if it has been added to an aggregation group, and vice versa.
Setting Loopback Detection for an Ethernet Port
Loopback detection is used to monitor if loopback occurs on a port.
After you enable loopback detection on Ethernet ports, the device can monitor if external loopback
occurs on them. If there is a loopback port found, the device will put it under control.
z
If loopback is found on an access port, the system disables the port, sends a Trap message to the
client and removes the corresponding MAC forwarding entry.
z
If loopback is found on a trunk or hybrid port, the system sends a Trap message to the client. When
the loopback port control function is enabled on these ports, the system disables the port, sends a
Trap message to the client and removes the corresponding MAC forwarding entry.
Follow these steps to set loopback detection for an Ethernet port:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable loopback detection globally loopback-detection enable
Required
By default, loopback detection is
disabled globally.
Set time interval for port loopback
detection
loopback-detection
interval-time time
Optional
The default interval is 30 seconds.
Enter Ethernet port view
interface
interface-type
interface-number
—
Enable loopback detection on a
specified port
loopback-detection enable
Required
By default, port loopback detection is
disabled.
Enable loopback port control on
the trunk or hybrid port
loopback-detection control
enable
Optional
By default, loopback port control is not
enabled.
Configure the system to run
loopback detection on all VLANs
for the trunk and hybrid ports
loopback-detection
per-vlan enable
Optional
By default, the system runs loopback
detection only on the default VLAN for
the trunk and hybrid ports.