2
•
Full-duplex
mode
(full)
—Interfaces that operate in this mode can send and receive packets
simultaneously.
•
Half-duplex mode (half)
—Interfaces that operate in this mode cannot send and receive
packets simultaneously.
•
Auto-negotiation mode (auto)
—Interfaces that operate in this mode negotiate a duplex mode
with their peers.
You can set the speed of an Ethernet interface or enable it to automatically negotiate a speed with its
peer. For a 100-Mbps or 1000-Mbps Ethernet interface, you can also set speed options for auto
negotiation. The two ends can select 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:
Step Command
Remarks
1.
Enter system
view.
system-view
N/A
2.
Enter Ethernet
interface view.
interface interface-type
interface-number
N/A
3.
Set the interface
description.
description
text
Optional.
By default, the description of an interface is in the
format of
interface-name
Interface
. For example,
Ethernet1/0/1 Interface
.
4.
Set the duplex
mode of the
interface.
duplex
{
auto
|
full
|
half
}
Optional.
By default,
the duplex mode is
auto
for Ethernet
interfaces.
The
half
keyword is not applicable to Ethernet copper
ports that are configured with a 1000-Mbps port speed
and fiber ports.
5.
Set the port
speed.
speed
{
10
|
100
|
1000
|
auto
}
Optional.
By default, an Ethernet interface automatically
negotiates a speed with the peer.
The
10
and
100
keywords are not applicable to 10-GE
fiber ports.
6.
Restore the
default settings for
the interface.
default
Optional.
NOTE:
Make sure that the fiber port speed matches the speed requirement of the inserted transceiver
module. For example, after you insert a 1000-Mbps transceiver module into a fiber port, configure
the port speed with the
speed 1000
or
speed auto
command.
Shutting down an Ethernet interface
CAUTION:
Use this feature with caution. After you manually shut down an Ethernet interface, the Ethernet
interface cannot forward packets even if it is physically connected.
You might need to shut down and then bring up an Ethernet interface to activate some configuration
changes, for example, the speed or duplex mode changes.