NOTE:
To use loopback detection on an Ethernet interface, you must enable the function both globally and on
•
the interface.
•
To disable loopback detection on all interfaces, run the undo loopback-detection enable command in
system view.
To enable a hybrid or trunk port to take the administratively specified protective action, you must use the
•
loopback-detection control enable command on the port.
When you change the link type of an Ethernet interface by using the port link-type command, the switch
•
removes the protective action configured on the interface. For more information about the port link-type
command, see
Setting the MDI mode of an Ethernet interface
NOTE:
Fiber ports do not support the MDI mode setting.
You can use both crossover and straight-through Ethernet cables to connect copper Ethernet interfaces.
To accommodate these types of cables, a copper Ethernet interface can operate in one of the following
Medium Dependent Interface (MDI) modes:
•
Across mode
Normal mode
•
Auto mode
•
A copper Ethernet interface uses an RJ-45 connector, which comprises eight pins, each of which plays a
dedicated role. For example, pins 1 and 2 transmit signals, and pins 3 and 6 receive signals. The pin
role varies by the MDI modes as follows:
•
In normal mode, pins 1 and 2 are transmit pins, and pins 3 and 6 are receive pins.
In across mode, pins 1 and 2 are receive pins, and pins 3 and 6 are transmit pins.
•
In auto mode, the interface negotiates pin roles with its peer.
•
To enable the interface to communicate with its peer, make sure that its transmit pins are connected to the
remote receive pins. If the interface can detect the connection cable type, set the interface in auto MDI
mode. If not, set its MDI mode by using the following guidelines:
When a straight-through cable is used, set the interface to work in the MDI mode different than its
•
peer.
When a crossover cable is used, set the interface to work in the same MDI mode as its peer, or set
•
either end to work in auto mode.
Follow these steps to set the MDI mode of an Ethernet interface:
To do...
Enter system view
Enter Ethernet interface view
Layer 2—LAN Switching Command Reference
Use the command...
system-view
interface interface-type
interface-number
.
13
Remarks
—
—