1
Configuring Ethernet interfaces
About Ethernet interface
The device supports Ethernet interfaces. For the interface types and the number of interfaces
supported by a switch model, see the installation guide.
This chapter describes how to configure Ethernet interfaces.
Configuring common Ethernet interface settings
Configuring basic settings of an Ethernet interface
About this task
You can configure an Ethernet interface to operate in one of the following duplex modes:
•
Full-duplex mode
—The interface can send and receive packets simultaneously.
•
Half-duplex mode
—The interface can only send or receive packets at a given time.
•
Autonegotiation mode
—The interface negotiates a duplex mode with its peer.
You can set the speed of an Ethernet interface or enable it to automatically negotiate a speed with its
peer.
Restrictions and guidelines
The
shutdown
and
loopback
commands are mutually exclusive.
Procedure
1.
Enter system view.
system-view
2.
Enter Ethernet interface view.
interface interface-type interface-number
3.
Set the description for the Ethernet interface.
description
text
The default setting is
interface-name
Interface
. For example,
GigabitEthernet1/0/1
Interface
.
4.
Set the duplex mode for the Ethernet interface.
duplex
{
auto
|
full
|
half
}
By default, the duplex mode is
auto
for Ethernet interfaces.
Fiber ports do not support the
half
keyword.
5.
Set the speed for the Ethernet interface.
speed
{
10
|
100
|
1000
|
10000
|
auto
}
By default, an interface autonegotiates its speed.
6.
Set the expected bandwidth for the Ethernet interface.
bandwidth
bandwidth-value
By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.
7.
Bring up the Ethernet interface.
undo shutdown