Cisco Systems WSC2960X48TDL Configuring a Range of Interfaces, Enters global configuration mode

Models: WSC2960X48TDL

1 108
Download 108 pages 27.2 Kb
Page 37
Image 37
Configuring a Range of Interfaces

Configuring Interface Characteristics

Configuring a Range of Interfaces

Configuring a Range of Interfaces

To configure multiple interfaces with the same configuration parameters, use the interface range global configuration command. When you enter the interface-range configuration mode, all command parameters that you enter are attributed to all interfaces within that range until you exit this mode.

SUMMARY STEPS

1.configure terminal

2.interface range {port-rangemacro macro_name}

3.end

4.show interfaces [interface-id]

DETAILED STEPS

 

Command or Action

Purpose

Step 1

configure terminal

Enters global configuration mode.

 

Example:

 

 

Switch# configure terminal

 

Step 2 interface range {port-rangemacro

macro_name}

Example:

Switch(config)# interface range macro

Step 3

end

Specifies the range of interfaces (VLANs or physical ports) to be configured, and enter interface-range configuration mode.

You can use the interface range command to configure up to five port ranges or a previously defined macro.

The macro variable is explained in the Configuring and Using Interface Range Macros, on page 26.

In a comma-separated port-range, you must enter the interface type for each entry and enter spaces before and after the comma.

In a hyphen-separated port-range, you do not need to re-enter the interface type, but you must enter a space before the hyphen.

Note Use the normal configuration commands to apply the configuration parameters to all interfaces in the range. Each command is executed as it is entered.

Returns to privileged EXEC mode.

Example:

Switch(config)# end

Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29034-01

25

Page 37
Image 37
Cisco Systems WSC2960X48TDL Configuring a Range of Interfaces, end 4. show interfaces interface-id, macroname, Purpose