interface range

This topic explains how to enter Interface Range Configuration mode to configure several interfaces at the same time.

Syntax

interface range id

Parameter

id: Specify a range or group of interfaces. The id parameter represents a range of interface numbers in which each interface number is separated by a comma, for example: 1/0/1,1/0/3,2/0/1). You can also enter a range of interface numbers in which the interface numbers are separated by a hyphen, for example: 1/0/1-2/0/28). Another option is to combine individual interfaces and ranges by separating them by one or more commas, for example: 1/0/1-1/0/3,1/0/6,2/0/1-2/0/28).

Default

No default value.

Mode

Global Configuration

Usage

Some configurations are interface-range based, requiring you to enter Interface Range Configuration mode. Use this command to enter Interface Range Configuration mode and select the range of interfaces to configure. In Interface Range Configuration mode, the prompt displays as follows:

CODE
Switch(config-if-range)#

Example

This example shows how to enter Interface Range Configuration mode for interfaces 1/0/1 through 2/0/28:
CODE
Switch# configure
Switch(config)# interface range 1/0/1-2/0/28
Switch(config-if-range)#