Configuring Interface Characteristics

Configuring and Using Interface Range Macros

 

Command or Action

Purpose

Step 4

show interfaces [interface-id]

Verifies the configuration of the interfaces in the range.

 

Example:

 

 

Switch# show interfaces

 

Configuring and Using Interface Range Macros

You can create an interface range macro to automatically select a range of interfaces for configuration. Before you can use the macro keyword in the interface range macro global configuration command string, you must use the define interface-rangeglobal configuration command to define the macro.

SUMMARY STEPS

1.configure terminal

2.define interface-rangemacro_name interface-range

3.interface range macro macro_name

4.end

5.show running-config include define

DETAILED STEPS

 

Command or Action

Purpose

Step 1

configure terminal

Enters global configuration mode.

 

Example:

 

 

Switch# configure terminal

 

Step 2

define interface-range macro_name

 

interface-range

Example:

Switch(config)# define interface-range enet_list gigabitethernet1/0/1 - 2

Defines the interface-range macro, and save it in NVRAM.

The macro_name is a 32-character maximum character string.

A macro can contain up to five comma-separated interface ranges.

Each interface-rangemust consist of the same port type.

Note Before you can use the macro keyword in the interface range macro global configuration command string, you must use the define interface-rangeglobal configuration command to define the macro.

 

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

26

OL-29034-01

Page 38
Image 38
Cisco Systems WSC2960X48TDL manual Configuring and Using Interface Range Macros, Define interface-range macroname