4
Setting the statistics polling interval
About this task
To display the interface statistics collected in the last statistics polling interval, use the
display
interface
command. To clear the interface statistics, use the
reset counters interface
command.
Setting the statistics polling interval in Ethernet interface view
1.
Enter system view.
system-view
2.
Enter Ethernet interface view.
interface interface-type interface-number
3.
Set the statistics polling interval for the Ethernet interface.
flow-interval interval
By default, the statistics polling interval is 300 seconds.
Enabling loopback testing on an Ethernet interface
About this task
Perform this task to determine whether an Ethernet link works correctly.
Loopback testing includes the following types:
•
Internal loopback testing
—Tests the device where the Ethernet interface resides. The
Ethernet interface sends outgoing packets back to the local device. If the device fails to receive
the packets, the device fails.
•
External loopback testing
—Tests the inter-device link. The Ethernet interface sends incoming
packets back to the remote device. If the remote device fails to receive the packets, the
inter-device link fails.
Restrictions and guidelines
•
After you enable this feature on an Ethernet interface, the interface does not forward data
traffic.
•
The
shutdown
and
loopback
commands are mutually exclusive.
•
After you enable this feature on an Ethernet interface, the Ethernet interface switches to full
duplex mode. After you disable this feature, the Ethernet interface restores to its duplex setting.
Procedure
1.
Enter system view.
system-view
2.
Enter Ethernet interface view.
interface interface-type interface-number
3.
Enable loopback testing.
loopback
{
external
|
internal
}