Specifications

2-77
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
interface range
These are the valid values for port-range type and interface:
vlan vlan-id, where vlan-id is from 1 to 4094 when the enhanced software image (EI) is installed
and 1 to 1001 when the standard software image (SI) is installed.
port-channel port-channel-number, where port-channel-number is from 1 to 6
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 the range is 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
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, refer to the Catalyst 2950 and Catalyst 2955
Switch 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 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 the macro1 until you delete it.
Switch(config)# define interface-range macro gigabitethernet0/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.