Configuring Interface Characteristics
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
interface range {port-range | macro
macro_name}
Example:
Switch(config)# interface range
macro
Step 3
end
Example:
Switch(config)# end
Step 4
show interfaces [interface-id]
Example:
Switch# show interfaces
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.
OL-29420-01
Purpose
Enters global configuration mode.
Specifies the range of interfaces (VLANs or physical ports) to be configured,
and enter interface-range configuration mode.
• You can use the interface range command to configure up to five port
• The macro variable is explained in the
• In a comma-separated port-range, you must enter the interface type for
• In a hyphen-separated port-range, you do not need to re-enter the
Note
Returns to privileged EXEC mode.
Verifies the configuration of the interfaces in the range.
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
Configuring and Using Interface Range Macros
ranges or a previously defined macro.
Range Macros, on page
27.
each entry and enter spaces before and after the comma.
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.
Configuring and Using Interface
27