Before You Begin
Before you can
configure the parameters for one or more interfaces of the same type, you must
specify the type and the identities of the interfaces.
The following table
shows the interface types and identities that you should use for specifying the
Ethernet and management interfaces.
Table 2 Information
Needed to Identify an Interface for Configurations
Interface
Type
|
Identity
|
Ethernet
|
I/O module
slot numbers and port numbers on the module
|
Management
|
0 (for port
0)
|
The interface range
configuration mode allows you to configure multiple interfaces with the same
configuration parameters. After you enter the interface range configuration
mode, all command parameters you enter are attributed to all interfaces within
that range until you exit out of the interface range configuration mode.
You enter a range of
interfaces using dashes (-) and commas (,). Dashes separate contiguous
interfaces and commas separate noncontiguous interfaces. When you enter
noncontiguous interfaces, you must enter the media type for each interface.
This example shows
how to configure a contiguous interface range:
switch(config)# interface ethernet 2/29-30
switch(config-if-range)#
This example shows
how to configure a noncontiguous interface range:
switch(config)# interface ethernet 2/29, ethernet 2/33, ethernet 2/35
switch(config-if-range)#
You can specify
subinterfaces in a range only when the subinterfaces are on the same port, for
example, 2/29.1-2. But you cannot specify the subinterfaces in a range of
ports, for example, you cannot enter 2/29.2-2/30.2. You can specify two of the
subinterfaces discretely, for example, you can enter 2/29.2, 2/30.2.
This example shows how to configure a a breakout cable:
switch(config)# interface ethernet 1/2/1
switch(config-if-range)#