PurposeCommand or Action
Example:
Switch> enable
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Specifies the range of interfaces (VLANs or physical ports) to be
configured, and enter interface-range configuration mode.
interface range {port-range | macro
macro_name}
Step 3
Example:
Switch(config)# interface range macro
•
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 28.
•
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.
Use the normal configuration commands to apply the
configuration parameters to all interfaces in the range. Each
command is executed as it is entered.
Note
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 4
Verifies the configuration of the interfaces in the range.
show interfaces [interface-id]
Example:
Switch# show interfaces
Step 5
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Example:
Switch# copy running-config
Step 6
startup-config
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
27
How to Configure Interface Characteristics