interface range
Valid values for port-range type and interface:
•
•
•
•
When you use the interface range command with port channels, the first and last port channel number
Note
in the range must be active port channels.
When you define a range, you must enter a space between the first entry and the hyphen (-):
interface range gigabitethernet1/0/1 -2
When you define multiple ranges, you must still enter a space after the first entry and before the
comma (,):
interface range fastethernet1/0/1 - 2, gigabitethernet1/0/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 (this would make the command similar to the
interface interface-id global configuration command).
Note
For more information about configuring interface ranges, see the software configuration guide for this
release.
Examples
This example shows how to use the interface range command to enter interface range configuration
mode to apply commands to two ports:
Switch(config)# interface range gigabitethernet1/0/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 macro1 until you delete it.
Switch(config)# define interface-range macro1 gigabitethernet1/0/1 - 2
Switch(config)# interface range macro macro1
Switch(config-if-range)#
Catalyst 3750 Switch Command Reference
2-108
vlan vlan-ID - vlan-ID, where VLAN ID is from 1 to 4094
fastethernet stack member/module/{first port} - {last port}, where module is always 0
gigabitethernet stack member/module/{first port} - {last port}, where module is always 0
For physical interfaces:
stack member is the number used to identify the switch within the stack. The number ranges
–
from 1 to 9 and is assigned to the switch the first time the stack member initializes.
module is always 0
–
the range is type stack member/0/number - number (for example, gigabitethernet1/0/1 - 2)
–
port-channel port-channel-number - port-channel-number, where port-channel-number is from 1
to 48
Chapter 2
Catalyst 3750 Switch Cisco IOS Commands
78-16181-03