2-124
Catalyst 3550 Multilayer Switch Command Reference
OL-8566-02
Chapter 2 Catalyst 3550 Switch Cisco IOS Commands
interface range
• fastethernet interface-id
• gigabitethernet interface-id
For physical interfaces, the interface-id is defined as a slot/number (where slot is always 0 for the
switch), and you can enter the range in one of these ways:
• type 0/number - number (for example, gigabitethernet0/1 -2)
• type 0/number - 0/number (for example, gigabitethernet0/1 - 0/2)
When you define a range, you must enter a space between the first entry and the hyphen (-):
interface range gigabitethernet0/1 -2, gigabitethernet0/4 -5
When you define multiple ranges, you must enter a space before and after the comma (,):
interface range fastethernet0/3 - 7, gigabitethernet0/1 - 2
You cannot specify both a macro and an interface range in the same command.
A single interface can also be specified in port-range (this would make the command 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 to apply commands to two ports:
Switch(config)# interface range gigabitethernet0/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 macro1 until you delete it.
Switch(config)# define interface-range macro1 gigabitethernet0/1 - 2
Switch(config)# interface range macro macro1
Switch(config-if-range)#
Related Commands Command Description
define interface-range Creates an interface range macro.
show running-config Displays the configuration information currently running on the switch. For
syntax information, select Cisco IOS Release 12.2 Configuration Guides
and Command References > Cisco IOS Configuration Fundamentals
Command Reference, Release 12.2 > File Management Commands >
Configuration File Management Commands.