Defining And Using Interface-Range Macros - Cisco 6500 Series Software Configuration Manual

Hide thumbs Also See for 6500 Series:
Table of Contents

Advertisement

Defining and Using Interface-Range Macros

If you enter multiple configuration commands while you are in interface-range configuration mode, each
command is executed as it is entered (they are not batched together and executed after you exit
interface-range configuration mode).
If you exit interface-range configuration mode while the commands are being executed, some commands
may not be executed on all interfaces in the range. Wait until the command prompt reappears before
exiting interface-range configuration mode.
Defining and Using Interface-Range Macros
You can define 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 command string, you must define
the macro.
To define an interface-range macro, perform this task:
Command
Router(config)# define interface-range macro_name
{vlan vlan_ID - vlan_ID} | {type
1
[, {type
slot/port - port}]
Router(config)# no define interface-range macro_name
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to define an interface-range macro named enet_list to select Fast Ethernet ports
5/1 through 5/4:
Router(config)# define interface-range enet_list fastethernet 5/1 - 4
To show the defined interface-range macro configuration, perform this task:
Command
Router# show running-config
This example shows how to display the defined interface-range macro named enet_list:
Router# show running-config | include define
define interface-range enet_list FastEthernet5/1 - 4
Router#
To use an interface-range macro in the interface range command, perform this task:
Command
Router(config)# interface range macro macro_name
This example shows how to change to the interface-range configuration mode using the interface-range
macro enet_list:
Router(config)# interface range macro enet_list
Router(config-if)#
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
6-6
1
slot/port - port}
Purpose
Defines the interface-range macro and save it in NVRAM.
Deletes a macro.
Purpose
Shows the defined interface-range macro configuration.
Purpose
Selects the interface range to be configured using the values
saved in a named interface-range macro.
Chapter 6
Configuring Interfaces
78-14099-04

Advertisement

Table of Contents
loading

Table of Contents