2-125
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
interface range
• fastethernet interface-id
• gigabitethernet interface-id
• longreachethernet interface-id
For physical interfaces, the interface-id is defined as a slot/number (where slot is always 0 for the
switch), and the range is entered as type 0/number - number (for example, fastethernet0/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 fastethernet0/1 - 2
When you define multiple ranges, you must enter a space before and after the comma (,):
interface range fastethernet0/3 - 7 , gigabitethernet0/1
You cannot specify both a macro and an interface range in the same command.
A single interface can also be specified in port-range. (The command is then similar to the interface
interface-id global configuration command.)
Note For more information about configuring interface ranges, see the software configuration guide for this
release.
Examples This example shows how to use the interface range command to enter interface range configuration
mode and to enter commands for two ports:
Switch(config)# interface range fastethernet0/1 - 2
Switch(config-if-range)#
This example shows how to use a port-range macro macro1 for the same function. The advantage is that
you can reuse the macro1 until you delete it.
Switch(config)# define interface-range macro1 fastethernet0/1 - 2
Switch(config)# interface range macro macro1
Switch(config-if-range)#
Related Commands Command Description
show running-config Displays the configuration information running on the switch. For syntax
information, select Cisco IOS Configuration Fundamentals Command
Reference for Release 12.1 > Cisco IOS File Management Commands >
Configuration File Commands.