The duplex command sets the duplex mode for an Ethernet electrical interface in non-auto-negotiation mode.
The undo duplex command restores the default duplex mode for an Ethernet electrical interface in non-auto-negotiation mode.
By default, the duplex mode of an Ethernet electrical interface is full duplex when the interface works in non-auto-negotiation mode.
Physical interfaces of the S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not support the half duplex mode and this command is not supported.
Parameter |
Description |
Value |
---|---|---|
full |
Sets the duplex mode to full duplex for an Ethernet electrical interface in non-auto-negotiation mode. |
- |
half |
Sets the duplex mode to half duplex for an Ethernet electrical interface in non-auto-negotiation mode. |
- |
Usage Scenario
If the peer device does not support auto-negotiation, you can run this command to manually set the duplex mode for the local interface in non-auto-negotiation mode to ensure that the interface works in the same duplex mode as the peer interface.
Prerequisites
The Ethernet interface has been set to work in non-auto-negotiation mode by running the undo negotiation auto command.
When the working rate of a GE electrical interface is 1000 Mbit/s, the interface supports only the full duplex mode and does not need to negotiate the duplex mode with the peer interface.
When an interface works in half-duplex mode, flow control does not take effect on the interface.
Interfaces on both ends of a link must have the same duplex mode.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo negotiation auto [HUAWEI-GigabitEthernet0/0/1] speed 100 [HUAWEI-GigabitEthernet0/0/1] duplex half