2-291
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
interface range
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:
• FastEthernet
• GigabitEthernet
• Vlan vlan_id
You cannot specify both a macro and an interface range in the same command. After creating a macro,
you can enter additional ranges. If you have already entered an interface range, the CLI does not allow
you to enter a macro.
You can specify a single interface in the port-range value. This makes the command similar to the
interface interface-number command.
Examples This example shows how to use the interface range command to interface to FE 5/18 - 20:
Switch(config)# interface range fastethernet 5/18 - 20
Switch(config-if)#
This command shows how to run a port-range macro:
Switch(config)# interface range macro macro1
Switch(config-if)#
Related Commands Command Description
define interface-range Creates a macro of interfaces.
show running config (refer to Cisco IOS
documentation)
Displays the running configuration for a switch.