Reference Guide

Interfaces | 577
The following figure shows how to use commas to add SONET, VLAN, and port-channel interfaces to
the range.
Example
Figure 23-14. Multiple Range Bulk Configuration with SONET, VLAN, and port channel
Related
Commands
interface range macro (define)
c e s
Defines a macro for an interface range and then saves the macro in the running configuration.
Syntax
define interface range macro name interface , interface , ...
Parameters
Defaults
This command has no default behavior or value
Command Modes
CONFIGURATION
FTOS(config-if)# interface range gigabitethernet 5/1 - 23, tengigabitethernet 1/1 – 2,
Vlan 2 – 100 , Port 1 – 25
FTOS(config-if-range)# no shutdown
FTOS(config-if-range)#
interface port-channel Configure a port channel group.
interface vlan Configure a VLAN interface.
show config (from INTERFACE
RANGE mode)
Show the bulk configuration interfaces.
show range Show the bulk configuration ranges.
interface range macro (define) Define a macro for an interface-range.
name
Enter up to 16 characters for the macro name.
interface , interface ,...
Enter the interface keyword (see below) and one of the interfaces slot/
port, port-channel or VLAN numbers. Select the range of interfaces for bulk
configuration. You can enter up to six comma separated ranges—spaces are
not required between the commas. Comma-separated ranges can include
VLANs, port-channels and physical interfaces.
Slot/Port information must contain a space before and after the dash. For
example,
interface range gigabitethernet 0/1 - 5 is valid;
interface range gigabitethernet 0/1-5 is not valid.
For a 1-Gigabit Ethernet interface, enter the keyword
GigabitEthernet followed by the slot/port information.
For a Port Channel interface, enter the keyword
port-channel
followed by a number:
C-Series and S-Series Range: 1-128
E-Series Range: 1 to 32 for EtherScale, 1 to 255 for TeraScale and 1 to
512 for ExaScale.
For a SONET interface, enter the keyword
sonet followed by the slot/
port information.
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet followed by the slot/port information.
For a VLAN, enter the keyword
vlan followed by a number from 1 to
4094.