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.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
define interface-range macro_name interface-range
4.
interface range macro macro_name
5.
end
6.
show running-config | include define
7.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
Enters global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Defines the interface-range macro, and save it in NVRAM.
define interface-range macro_name
interface-range
Step 3
•
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 4
You can now use the normal configuration commands to apply the
configuration to all interfaces in the defined macro.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
28
How to Configure Interface Characteristics
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......