c
Configuring the Cable
Type for an Ethernet
Interface
n
If loops are detected on a port that is of trunk or hybrid type, trap messages are
■
sent to the terminal. If the loopback detection control function is also enabled
on the port, the port will be blocked, trap messages will be sent to the
terminal, and the corresponding MAC address forwarding entries will be
removed.
Follow the following steps to configure loopback detection:
To do...
Enter system view
Enable global loopback
detection
Configure the interval for port
loopback detection
Enter Ethernet interface view
Enable loopback detection on
a port
Enable loopback detection
control on a Trunk port or a
Hybrid port
Enable loopback detection in
all the VLANs containing the
port
Display the information about
loopback detection
CAUTION:
Loopback detection on a given port is enabled only after the
■
loopback-detection enable command has been issued in both system view
and the interface view of the port.
Loopback detection on all ports will be disabled after the issuing of the undo
■
loopback-detection enable command under system view.
For a Trunk or Hybrid port, make sure that the default VLAN of the port exists.
■
The optical interface of a Combo port does not support this feature.
■
After you perform the configuration described in this section, the link goes
■
down and up automatically.
Two types of Ethernet cables can be used to connect Ethernet devices: crossover
cable and straight-through cable. To accommodate these two types of cables, an
Ethernet interface on a device can operate in one of the following three Medium
Dependent Interface (MDI) modes:
Configuring Layer 2 Ethernet Interfaces
Use the command...
system-view
loopback-detection enable
loopback-detection
interval-time time
interface interface-type
interface-number
loopback-detection enable
loopback-detection control
enable
loopback-detection
per-vlan enable
display loopback-detection Optional
95
Remarks
-
Required
Disabled by default
Optional
30 seconds by default
-
Required
Disabled by default
Optional
Disabled by default
Optional
Enabled only in the default
VLAN(s) with Trunk port or
Hybrid ports
This command can be
executed in any view.