Configuring and Using Interface Range Macros
SUMMARY STEPS
1. configure terminal
2. define interface-range macro_name interface-range
3. interface range macro macro_name
4. end
5. show running-config | include define
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
define interface-range macro_name
interface-range
Example:
Switch(config)# define interface-range
enet_list gigabitethernet1/0/1 - 2
Step 3
interface range macro macro_name
Example:
Switch(config)# interface range macro
enet_list
Step 4
end
Example:
Switch(config)# end
Step 5
show running-config | include define
Example:
Switch# show running-config | include
define
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
28
Purpose
Enters global configuration mode.
Defines the interface-range macro, and save it in NVRAM.
• The macro_name is a 32-character maximum character string.
• A macro can contain up to five comma-separated interface
ranges.
• Each interface-range must consist of the same port type.
Before you can use the macro keyword in the interface
Note
range macro global configuration command string, you must
use the define interface-range global configuration command
to define the macro.
Selects the interface range to be configured using the values saved in
the interface-range macro called macro_name.
You can now use the normal configuration commands to apply the
configuration to all interfaces in the defined macro.
Returns to privileged EXEC mode.
Shows the defined interface range macro configuration.
Configuring Interface Characteristics
OL-29420-01