Configuring A Range Of Interfaces - Cisco Catalyst 4500 Series Software Configuration Manual

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Switch(config)# interface fastethernet 5/5
Switch(config-if)#
You do not need to add a space between the interface type and interface number. For example, in the preceding line
Note
you can specify either fastethernet 5/5 or fastethernet5/5.
Follow each interface command with the interface configuration commands your particular interface
Step 5
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.
After you configure an interface, check its status by using the EXEC show commands listed in the
Step 6
"Monitoring and Maintaining the Interface" section on page

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:
Command
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}]
When you use the interface range command, you must add a space between the vlan, fastethernet,
Note
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
Configuring a Range of Interfaces
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS
9
Chapter 9
9-44.
Purpose
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.
Configuring Interfaces

Advertisement

Table of Contents
loading

Table of Contents