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