6
Step Command
Remarks
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
By default, an Ethernet interface is
enabled.
The
shutdown
and
loopback
commands
are exclusive with each other.
Configuring an Ethernet subinterface
When you configure an Ethernet subinterface, follow these restrictions and guidelines:
•
To transmit and receive packets through an Ethernet subinterface, you must associate it with a
VLAN. For more information, see
Layer 2—LAN Switching Configuration Guide
.
•
To transmit packets between a local Ethernet subinterface and a remote Ethernet subinterface,
configure them with the same subinterface number and VLAN ID.
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
. For
example,
GigabitEthernet1/1/1.1
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
interface baud rate divided by
1000.
6.
Bring up the Ethernet
subinterface.
undo shutdown
By default, an Ethernet
subinterface is enabled.
The
shutdown
and
loopback
commands are exclusive with
each other.
Configuring the link mode of an Ethernet interface
CAUTION:
After you change the link mode of an Ethernet interface, all commands (except the
shutdown
and
combo enable
commands) on the Ethernet interface are restored to their defaults in the new link
mode.
Ethernet interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces. You can set the link
mode to bridge or route for these Ethernet interfaces as follows: