< Home

duplex

Function

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.

Format

duplex { full | half }

undo duplex

Parameters

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.

-

Views

Ethernet interface view, MultiGE interface view, GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Interfaces can work in the following two duplex modes:
  • Half-duplex mode: An interface in this mode only receives or sends data at a time within a specified transmission distance.
  • Full-duplex mode: An interface in this mode receives and sends data at the same time. The maximum throughput in full-duplex mode is double that in half-duplex mode, and the transmission distance is not limited.

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.

Precautions
  • 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.

Example

# Set the duplex mode to half duplex for Ethernet electrical interface GE0/0/1 in non-auto-negotiation 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >