Specifications

2-222
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
interface range
interfac e rang e
To run a command on multiple ports at the same time, u se the interface range command.
interface range {vlan vlan_id - vlan_id} {port-range | mac ro name}
Syntax Description
Defaults T his command has no default settings.
Command Modes Global c onfiguratio n mode
Interface configuration mode
Usage Guidelines You c an use the interface range command on the existing VLAN SVIs only. To display the VLAN SVIs,
enter the show running config command. The VLANs that are not displayed cannot be used in the
interface range command.
The values that are entered with the interface rang e command are applied to all the existing VLAN
SVIs.
Before you can use a macro, you must define a range using the define interface-range command.
All configuration changes t hat are made to a port range are sa ved to NVRAM, but the port ranges t hat
are created with the interface range command do not get saved to NVRAM.
You can enter the port range in two ways:
Spec ifying u p to f ive port ranges
Specifying a previously defined macro
You can either specify the ports or the name of a port-range macro. A port range must consist of the same
port type, and the ports within a r ange cannot span the modules .
You can define up to five port ranges on a single command ; separate each range with a comma.
When you define a range, you must ent er a space between the first port and the hyphen (-):
interface range gigabitethernet 5/1 -20, gigabitethernet4/5 -20.
Use these formats when entering the port-range:
interface-type {mod}/{first-port} - {last-port}
interface-type {mod}/{first-port} - {last-port}
Valid values for interface-type are as follows:
Fas tEthernet
GigabitEthernet
vlan vlan_id - vlan_id Specifies a VLAN range; valid values are from 1 to 4094.
port-range Port range; for a list of valid values for port-range, see the “Usage
Guidelines” section.
macro name Specifies the name of a macro.