2-71
Cisco IE 3000 Switch Command Reference
OL-13019-01
Chapter 2 IE 3000 Switch Cisco IOS Commands
define interface-range
• gigabitethernet module/{first port} - {last port}
For physical interfaces:
• the range is type number/number - number (for example, gigabitethernet 1/1 - 2).
When you define a range, you must enter a space before the hyphen (-), for example:
gigabitethernet1/1 - 2
You can also enter multiple ranges. When you define multiple ranges, you must enter a space after the
first entry before the comma
(,). The space after the comma is optional, for example:
fastethernet1/3, gigabitethernet1/1 - 2
fastethernet1/3 -4, gigabitethernet1/1 - 2
Examples This example shows how to create a multiple-interface macro:
Switch(config)# define interface-range macro1 fastethernet1/1 - 2, gigabitethernet1/1 - 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, Release 12.2 > File Management
Commands > Configuration File Management Commands.