To do…
Use the command…
Remarks
Activate the copper combo port or
fiber combo port
combo enable
{
copper
|
fiber
}
Optional
By default, the copper combo port
is active.
Configuring basic settings of an Ethernet interface
Configuring duplex mode and speed on an Ethernet interface
You can set an Ethernet interface to operate in one of the following duplex modes:
•
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 1000-Mbps Layer 2 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 “
speed options for auto negotiation on an Ethernet interface
Follow these steps to set duplex mode and speed on an Ethernet interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet interface view
interface
interface-type
interface-number
—
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, for
example,
Ethernet1/0/1 Interface
.
Set the duplex mode
duplex
{
auto
|
full
|
half
}
Optional
auto
by default.
The fiber port of an SFP port and the
copper port of an Ethernet port whose
port rate is configured as 1000 Mbps
do not support the
half
keyword.
Set the interface speed
speed
{
10
|
100
|
1000
|
auto
}
Optional
auto
by default.
The keywords
10
and
1000
are
unavailable on SFP ports inserted with
100-Mbps SFP transceiver modules.
The keywords
10
and
100
are
unavailable on SFP ports inserted with
1000-Mbps SFP transceiver modules.
2