6
Step
Command
Remarks
By default, the duplex mode is
auto
for
Ethernet interfaces.
For interfaces at two ends of a physical
link to operate correctly, configure the
same duplex mode for them.
Interfaces that operate in 1000 Mbps or a
higher speed do not support the
half
keyword and cannot autonegotiate the
half duplex mode with the peer.
5.
Set the speed for the
Ethernet interface.
speed
{
10
|
100
|
1000 | 2500 |
5000
|
10000
|
40000
|
100000
|
auto
}
By default, an Ethernet interface
autonegotiates the speed with its peer.
Support for the keywords of this command
varies by interface type. For more
information, execute the
speed ?
command in interface view.
For interfaces at two ends of a physical
link to operate correctly, configure the
same speed for them.
The speed of a 10-Gbps or faster fiber
port cannot be configured or
autonegotiated as 100 Mbps or lower.
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.
Restore the default
settings for the Ethernet
interface.
default
N/A
8.
Bring up the Ethernet
interface.
undo shutdown
B y default, an Ethernet interface is up.
The
shutdown
,
port
up-mode
, and
loopback
commands are mutually
exclusive.
Configuring an Ethernet subinterface
When you configure an Ethernet subinterface, follow these restrictions and guidelines:
•
To transmit packets between a local Ethernet subinterface and a remote Ethernet subinterface,
configure them with the same subinterface number and VLAN ID.
•
Do not use the VLAN whose ID is an Ethernet subinterface number.
To configure an Ethernet subinterface:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create an Ethernet
subinterface.
interface interface-type
interface-number.subnumber
N/A
3.
Set the description for the
Ethernet subinterface.
description
text
The default setting is
interface-name
Interface
.
4.
Restore the default settings
for the Ethernet subinterface.
default
N/A
5.
Set the expected bandwidth
for the Ethernet subinterface.
bandwidth
bandwidth-value
By default, the expected
bandwidth (in kbps) is the