Configuring And Using Interface Range Macros - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Configure Interface Characteristics

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
Command or Action
Step 1
enable
Example:
Switch> enable
Step 2
configure terminal
Example:
Switch# configure terminal
Step 3
define interface-range macro_name
interface-range
Example:
Switch(config)# define interface-range
enet_list gigabitethernet1/0/1 - 2
Step 4
interface range macro macro_name
Example:
Switch(config)# interface range macro
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
28
Purpose
Enables privileged EXEC mode. Enter your password if prompted.
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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents