2-233
Catalyst 3750-X and 3560-X Switch Command Reference
OL-29704-01
Chapter 2 Catalyst 3750-X and 3560-X Switch Cisco IOS Commands
interface range
interface range
Use the interface range global configuration command on the switch stack or on a standalone switch to
enter interface range configuration mode and to execute a command on multiple ports at the same time.
Use the no form of this command to remove an interface range.
interface range {port-range | macro name}
no interface range {port-range | macro name}
Syntax Description
Defaults This command has no default setting.
Command Modes Global configuration
Command History
Usage Guidelines When you enter interface range configuration mode, all interface parameters you enter are attributed to
all interfaces within the range.
For VLANs, you can use the interface range command only on existing VLAN switch virtual interfaces
(SVIs). To display VLAN SVIs, enter the show running-config privileged EXEC command. VLANs not
displayed cannot be used in the interface range command. The commands entered under interface
range command are applied to all existing VLAN SVIs in the range.
All configuration changes made to an interface range are saved to NVRAM, but the interface range itself
is not saved to NVRAM.
You can enter the interface range in two ways:
• Specifying up to five interface ranges
• Specifying a previously defined interface-range macro
All interfaces in a range must be the same type; that is, all Fast Ethernet ports, all Gigabit Ethernet ports,
all EtherChannel ports, or all VLANs. However, you can define up to five interface ranges with a single
command, with each range separated by a comma.
Valid values for port-range type and interface:
• vlan vlan-ID - vlan-ID, where VLAN ID is from 1 to 4094
• gigabitethernet stack member/module/{first port} - {last port}, where module is always 0
port-range Port range. For a list of valid values for port-range, see the “Usage Guidelines”
section.
macro name Specify the name of a macro.
Release Modification
12.2(53)SE2 This command was introduced.