Configuring the Duplex Mode for an Ethernet Interface
Context
Duplex modes include:
- Half-duplex mode: An Ethernet interface only receives or sends data within the specified maximum transmission distance at a time.
- Full-duplex mode: An Ethernet interface receives and sends data at the same time. The maximum throughput in full-duplex mode doubles that in half-duplex mode, and there is no limit on the maximum transmission distance.
You can set the duplex mode for an Ethernet electrical interface in either auto-negotiation or non-auto negotiation mode.
- In auto-negotiation mode, interfaces on both ends of a link negotiate their duplex mode. If the negotiated duplex mode is not the required one, you can set the duplex mode manually. For example, two interfaces support both the full-duplex mode and half-duplex mode. If the two interfaces negotiate to work in half-duplex mode, but they are required to work in full-duplex mode, run the auto duplex full command to set the full-duplex mode for the two interfaces.
- In non-auto negotiation mode, you can manually set the required duplex mode for interfaces.
Procedure
- Setting the duplex mode in auto-negotiation mode
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The Ethernet interface view is displayed.
- Run negotiation auto
The Ethernet interface is configured to work in auto-negotiation mode.
- Run auto duplex { full | half }*
The duplex mode is set for the Ethernet interface.
By default, interfaces on both ends of a link negotiate their duplex mode.
- Run system-view
- Setting the duplex mode in non-auto negotiation mode
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The Ethernet interface view is displayed.
- Run undo negotiation auto
The Ethernet interface is configured to work in non-auto negotiation mode.
- Run duplex { full | half }
The duplex mode is set for the Ethernet interface.
By default, an Ethernet interface works in full-duplex mode.
- Run system-view