To do...
Enter system view
Enter Ethernet interface view
Set a link-up event
suppression interval
NOTE:
The link-delay mode up command and the link-delay command supersedes each other, and whichever is
configured last takes effect.
Configuring loopback testing on an Ethernet interface
If an Ethernet interface does not work normally, you can enable loopback testing on it to identify the
problem. Loopback testing has the following types:
Internal loopback testing—Tests all on-chip functions related to Ethernet interfaces.
•
•
External loopback testing—Tests hardware of Ethernet interfaces. To perform external loopback
testing on an Ethernet interface, connect a loopback plug to the Ethernet interface. The switch sends
test packets out the interface, which are expected to loop over the plug and back to the interface.
If the interface fails to receive any test packet, the hardware of the interface is faulty.
An Ethernet interface in a loopback test does not forward data traffic.
Follow these steps to enable loopback testing on an Ethernet interface:
To do...
Enter system view
Enter Ethernet interface view
Enable loopback testing
NOTE:
•
On an interface that is physically down, you can only perform internal loopback testing. On an interface
administratively shut down, you can perform neither internal nor external loopback testing.
The speed, duplex, mdi, and shutdown commands are not available during loopback testing.
•
•
During loopback testing, the Ethernet interface operates in full duplex mode. When you disable
loopback testing, the port returns to its duplex setting.
Loopback testing is a one-time operation, and is not recorded in the configuration file.
•
Configuring the link mode of an Ethernet interface
An Ethernet interface operates either in Layer 2 (bridge) or Layer 3 (route) mode. To meet networking
requirements, you can use a command to set the link mode of an Ethernet interface to bridge or route.
Follow these steps to change the link mode of an Ethernet interface:
Use the command...
system-view
interface interface-type
interface-number
link-delay delay-time mode up
Use the command...
system-view
interface interface-type
interface-number
loopback { external | internal }
5
Remarks
—
—
Required
Link-up event suppression is disabled by
default.
Remarks
—
—
Optional
Disabled by default.