2
operating in Layer 3 mode, the Ethernet interface acts as a Layer 3 interface. For more information, see
“Configuring the operating mode of an Ethernet interface.”
General Ethernet interface configuration
This section describes the attributes and configurations common to Layer 2 and Layer 3 Ethernet interfaces.
For specific attributes, see “Configuring a Layer 2 Ethernet interface” and
“Configuring a Layer 3 Ethernet
interface.”
Configuring basic settings of an Ethernet interface
Set an Ethernet interface to operate in one of the following duplex modes:
• Full-duplex mode (full). Interfaces operating in this mode can send and receive packets
simultaneously.
• Half-duplex mode (half). Interfaces operating in this mode cannot send and receive simultaneously.
• Auto-negotiation mode (auto). Interfaces operating in this mode negotiate a duplex mode with their
peers.
Similarly, you can set the speed of an Ethernet interface or enable it to negotiate a speed with its peer
automatically. For a 1000-Mbps Layer 2 Ethernet interface, you can also set speed options for auto
negotiation. The two ends can pick a speed only from the available options. For more information, see
“Setting speed options for auto negotiation on an Ethernet interface.”
To configure an Ethernet interface:
To do… Use the command… Remarks
1. Enter system view
system-view —
2. Enter Ethernet interface
view
interface interface-type
interface-number
—
3. Change the description of
the interface
description text
Optional.
By default, the description of an
interface is the interface name followed
by the “Interface” string,
GigabitEthernet1/0/1 Interface for
example.
4. Set the duplex mode
duplex { auto | full | half }
Optional.
By default, auto-negotiation mode
applies.
On the S5820X switches, both fiber
ports and Ethernet ports do not support
the half keyword.
On the S5800 switches, Ethernet ports
configured with a 1000-Mbps port
speed and fiber ports do not support
the half keyword.