15-14
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 15 Configuring Interface Characteristics
How to Configure Interface Characteristics
All interfaces defined as in a range must be the same type (all Fast Ethernet ports, all Gigabit
Ethernet ports, all EtherChannel ports, or all VLANs), but you can combine multiple interface types
in a macro.
Configuring and Using Interface Range Macros
Before You Begin
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-range global configuration comm and to define the macro.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 interface range {port-range | macro
macro_name}
Specifies the range of interfaces (VLANs or physical ports) to be
configured, and enters interface-range configuration mode.
interface range—Configures up to five port ranges or a
previously defined macro.
macro macro_name—Specifies the 32-character maximum
character string.
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 reenter the
interface type, but you must enter a space before the hyphen.
Step 3 Uses the normal configuration commands to apply the configuration
parameters to all interfaces in the range. Each command is executed
as it is entered.
Step 4 end Returns to privileged EXEC mode.
Step 5 show interfaces [interface-id]Verifies the configuration of the interfaces in the range.
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 define interface-range macro_name
interface-range
Defines the interface-range macro, and saves it in NVRAM.
macro macro_name—Specifies the 32-character maximum
character string.
A macro can contain up to five comma-separated interface ranges.
interface-range—Consists of the same port type.
Step 3 interface range macro macro_name Selects the interface range to be configured using the values saved in
the interface-range macro called macro_name.
You can now use the normal configuration commands to apply the
configuration to all interfaces in the defined macro.