Cisco Catalyst 3550 Command Reference Manual page 121

Multilayer switch
Hide thumbs Also See for Catalyst 3550:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands
Valid values for port-range type and interface:
For physical interfaces, the interface-id is defined as a slot/number (where slot is always 0 for the
Catalyst 3550 switch), and you can enter the range in one of these ways:
When you define a range, you must enter a space between the first entry and the hyphen (-):
interface range gigabitethernet0/1 -2, gigabitethernet0/4 -5
When you define multiple ranges, you must enter a space before and after the comma (,):
interface range fastethernet0/3 - 7 , gigabitethernet0/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).
For more information about configuring interface ranges, refer to the software configuration guide for
Note
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 gigabitethernet0/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 gigabitethernet0/1 - 2
Switch(config)# interface range macro macro1
Switch(config-if-range)#
Related Commands
Command
define interface-range
show running-config
78-11195-09
vlan vlan-id, where vlan-id is from 1 to 4094; do not enter leading zeros
port-channel port-channel-number, where port-channel-number is from 1 to 64
fastethernet interface-id
gigabitethernet interface-id
type 0/number - number (for example, gigabitethernet0/1 -2)
type 0/number - 0/number (for example, gigabitethernet0/1 - 0/2)
Description
Creates an interface range macro.
Displays the configuration information currently running on the switch. For
syntax information, select Cisco IOS Configuration Fundamentals
Command Reference for Release 12.1 > Cisco IOS File Management
Commands > Configuration File Commands.
Catalyst 3550 Multilayer Switch Command Reference
interface range
2-95

Advertisement

Table of Contents
loading

Table of Contents