4-4
Software Configuration Guide—Release 12.2(25)SG
OL-7659-02
Chapter4 Configuring Interfaces
Configuring a Range of Interfaces
Step5 Follow each interface command with the interface configuration commands your particular interface
requires. The commands you enter define the protocols and applications that will 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.
Step6 After you configure an interface, check its status by using the EXEC show commands listed in
“Monitoring and Maintaining the Interface” section on page 4-13.
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-ra nge 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, perform this task:
Note When you use the interfacerange com mand, you must add a space between the vlan, fastethernet,
gigabitethernet, tengigabitethernet, or macro keyword and the dash. For example, the co mmand
interface range fastethernet 5/1 - 5 specifies a valid range; the command
interface range fastethernet 1-5 does not contain a valid ra nge 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.
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.