Cisco Catalyst 2950 Command Reference Manual page 92

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

interface range
These are the 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
switch), and the range is entered as type 0/number - number (for example, gigabitethernet0/1 - 2). You
can also enter multiple ranges.
When you define a range, you must enter a space before and after the hyphen (-):
interface range gigabitethernet0/1 - 2
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. (The command is then similar to the interface
interface-id global configuration command.)
Note
For more information about configuring interface ranges, refer to the Catalyst 2950 Desktop Switch
Software Configuration Guide for this release.
Examples
This example shows how to use the interface range command to enter interface range configuration
mode and to enter commands for 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 the macro1 until you delete it.
Switch(config)# define interface-range macro gigabitethernet0/1 - 2
Switch(config)# interface range macro macro1
Switch(config-if-range)#
Related Commands
Command
show running-config
Catalyst 2950 Desktop Switch Command Reference
2-68
vlan vlan-id, where vlan-id is from 1 to 4094 when the enhanced software image (EI) is installed
and 1 to 1001 when the standard software image (SI) is installed.
port-channel port-channel-number, where port-channel-number is from 1 to 6
fastethernet interface-id
gigabitethernet interface-id
Description
Displays the configuration information 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.
Chapter 2
Cisco IOS Commands
78-11381-05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents