
9
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
interface baud rate divided by
1000.
6.
Bring up the Ethernet
subinterface.
undo shutdown
By default, an Ethernet
subinterface is up.
Do not use the
shutdown
command on an interface
configured with the
loopback
command.
Configuring the link mode of an Ethernet interface
CAUTION:
After you change the link mode of an Ethernet interface, all commands (except the
shutdown
commands) on the Ethernet interface are restored to their defaults in the new link mode.
The Ethernet interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces. You can set the
link mode to bridge or route.
In an IRF 3.1 system, Ethernet interfaces on PEXs cannot be configured as Layer 3 Ethernet
interfaces.
The following interfaces do not support the link mode configuration:
•
IRF physical interfaces (see
Virtual Technologies Configuration Guide
).
•
Reflector ports used in remote source mirroring groups (see
Network Management and
Monitoring Configuration Guide
).
•
EVB-enabled interfaces (see
EVB Configuration Guide
).
To configure the link mode of an Ethernet interface:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Ethernet interface
interface interface-type
N/A