Specifications
2-45
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
define interface-range
For physical interfaces, the interface-id is defined as a slot/number (where slot is always 0 for the
switch), and the range can be entered as type 0/number - number (for example, gigabitethernet0/1 - 2).
You can also enter multiple ranges.
When you define a range, you must enter a space before and after the hyphen (-):
interface range gigabitethernet0/1 - 2
When you define multiple ranges, you must enter a space before and after the comma (,):
interface range fastethernet0/3 - 7 , gigabitethernet0/1 - 2
Examples This example shows how to create a multiple-interface macro:
Switch(config)# define interface-range macro1 fastethernet 0/3 -7 , gigabitethernet 0/2
Related Commands Command Description
interface range Executes a command on multiple ports at the same time.
show running-config Displays the current operating configuration, including defined macros.
For syntax information, select Cisco IOS Configuration Fundamentals
Command Reference for Release 12.1 > Cisco IOS File Management
Commands > Configuration File Commands.