Setup Guide

Create a Single-Range
The following is an example of a single range.
Example of the interface range Command (Single Range)
Create a Multiple-Range
The following is an example of multiple range.
Example of the interface range Command (Multiple Ranges)
Exclude Duplicate Entries
The following is an example showing how duplicate entries are omitted from the interface-range prompt.
Example of the Interface-Range Prompt for Duplicate Interfaces
Exclude a Smaller Port Range
The following is an example show how the smaller of two port ranges is omitted in the interface-range prompt.
Example of the Interface-Range Prompt for Multiple Port Ranges
Overlap Port Ranges
The following is an example showing how the interface-range prompt extends a port range from the smallest start port number to the
largest end port number when port ranges overlap. handles overlapping port ranges.
Example of the Interface-Range Prompt for Overlapping Port Ranges
Commas
The following is an example of how to use commas to add dierent interface types to a range of interfaces.
Example of Adding Interface Ranges
Add Ranges
The following example shows how to use commas to add VLAN and port-channel interfaces to the range.
Example of Adding VLAN and Port-Channel Interface Ranges
Dening Interface Range Macros
You can dene an interface-range macro to automatically select a range of interfaces for conguration.
Before you can use the macro keyword in the interface-range macro command string, dene the macro.
To dene an interface-range macro, use the following command.
Denes the interface-range macro and saves it in the running conguration le.
CONFIGURATION mode
376
Interfaces