
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-range | macro macro_name}
3.
end
4.
show interfaces [interface-id]
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
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 2
Example:
Switch(config)# interface range
•
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.
macro
•
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 3
Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29034-01 25
Configuring Interface Characteristics
Configuring a Range of Interfaces
Kommentare zu diesen Handbüchern