9
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS
Chapter 9 Configuring Interfaces
Configuring a Range of Interfaces
Switch(config)#
interface fastethernet 5/5
Switch(config-if)#
Note
You do not need to add a space between the interface type and interface number. For example, in the preceding line
you can specify either fastethernet 5/5 or fastethernet5/
5
.
Step 5
Follow each
interface
command with the interface configuration commands your particular interface
requires. The commands you enter define the protocols and applications that run on the interface. The
commands are collected and applied to the
interface
command until you enter another
interface
command or press
Ctrl-Z
to exit interface configuration mode and return to privileged EXEC mode.
Step 6
After you configure an interface, check its status by using the EXEC
show
commands listed in the
“Monitoring and Maintaining the Interface” section on page 9-44
Configuring a Range of Interfaces
The interface-range configuration mode allows you to configure multiple interfaces with the same configuration parameters.
When you enter the interface-range configuration mode, all command parameters you enter are attributed to all interfaces
within that range until you exit interface-range configuration mode.
To configure a range of interfaces with the same configuration, enter this command:
Note
When you use the
interface range
command, you must add a space between the
vlan
,
fastethernet
,
gigabitethernet
,
tengigabitethernet
,
or
macro
keyword and the dash. For example, the command
interface range fastethernet 5/1 - 5
specifies a valid range; the command
interface range fastethernet 5/1-5
does not contain a valid range command.
Note
The
interface range
command works only with VLAN interfaces that have been configured with the
interface vlan
command (the
show running-configuration
command displays the configured VLAN
interfaces). VLAN interfaces that are not displayed by the
show running-configuration
command
cannot be used with the
interface range
command.
This example shows how to reenable all Fast Ethernet interfaces 5/1 to 5/5:
Switch(config)#
interface range fastethernet 5/1 - 5
Command
Purpose
Switch(config)#
interface range
{
vlan
vlan_ID
-
vlan_ID
} |
{{
fastethernet
|
gigabitethernet
|
tengigabitethernet
|
macro
macro_name
}
slot/interface
-
interface
} [
,
{
vlan
vlan_ID
-
vlan_ID
} {{
fastethernet
|
gigabitethernet
|
tengigabitethernet
|
macro
macro_name
}
slot/interface
-
interface
}]
Selects the range of interfaces to be configured. Note
the following:
•
You are required to enter a space before the dash.
•
You can enter up to five comma-separated
ranges.
•
You are not required to enter spaces before or
after the comma.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...