DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Specifies the range of interfaces (VLANs or physical ports) to be configured,
and enter interface-range configuration mode.
interface range {port-range | macro
macro_name}
Step 2
Example:
Switch(config)# interface range
•
You can use the interface range command to configure up to five port
ranges or a previously defined macro.
•
The macro variable is explained in the Configuring and Using Interface
Range Macros, on page 27.
macro
•
In a comma-separated port-range, you must enter the interface type for
each entry and enter spaces before and after the comma.
•
In a hyphen-separated port-range, you do not need to re-enter the
interface type, but you must enter a space before the hyphen.
Use the normal configuration commands to apply the configuration
parameters to all interfaces in the range. Each command is executed
as it is entered.
Note
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 3
Verifies the configuration of the interfaces in the range.
show interfaces [interface-id]
Example:
Switch# show interfaces
Step 4
Configuring and Using Interface Range Macros
You can create an interface range macro to automatically select a range of interfaces for configuration. Before
you can use the macro keyword in the interface range macro global configuration command string, you
must use the define interface-range global configuration command to define the macro.
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29420-01 27
Configuring Interface Characteristics
Configuring and Using Interface Range Macros