1-2
Similarly, if you configure the transmission rate for an Ethernet port by using the
speed
command with
the
auto
keyword specified, the transmission rate is determined through auto-negotiation too. For a
Gigabit Ethernet port, you can specify the transmission rate by its auto-negotiation capacity. For details,
refer to
Configuring an Auto-negotiation Transmission Rate.
Follow these steps to configure an Ethernet port:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port
view
interface interface-type
interface-number
—
Set the description
string
description
text
Optional
By default, the description of a port is the
port name followed by the “Interface”
string,
GigabitEthernet1/0/1 Interface
for example.
Set the duplex mode
duplex
{
auto
|
full
|
half
}
Optional
auto
by default.
The optical port of an SFP port and the
electrical port of an Ethernet port whose
port rate is configured as 1000 Mbps do
not support the
half
keyword.
Set the transmission
rate
speed
{
10
|
100
|
1000
|
auto
}
Optional
The optical port of an SFP port does not
support the
10
or
100
keyword.
By default, the port speed is in the
auto-negotiation mode.
Shut down the
Ethernet port
shutdown
Optional
By default, an Ethernet port is in up state.
To bring up an Ethernet port, use the
undo shutdown
command.
10-Gigabit Ethernet ports do not support the
duplex
command or the
speed
command.
Configuring an Auto-negotiation Transmission Rate
Usually, the transmission rate on an Ethernet port is determined through negotiation with the peer end,
which can be any rate within the capacity range. With auto-negotiation rate configured, you can enable
the Ethernet port to negotiate only part of the transmission rates within its capacity.