Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
Use these formats when entering the port-range:
•
•
Valid values for interface-type are as follows:
•
•
•
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
define interface-range
show running config (refer to Cisco IOS
documentation)
OL-27596 -01
interface-type {mod}/{first-port} - {last-port}
interface-type {mod}/{first-port} - {last-port}
FastEthernet
GigabitEthernet
Vlan vlan_id
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
Description
Creates a macro of interfaces.
Displays the running configuration for a switch.
interface range
2-291