Interfaces | 497
FTOS(config-ifrange-gi-5/1-23-te-1/1-2)# interface range Vlan 2 – 100 , Port 1 – 25
FTOS(config-if-range-gi-5/1-23-te-1/1-2-so-5/1-vl-2-100-po-1-25)# no shutdown
FTOS(config-if-range)#
Interface Range Macros
The user can define 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 command string, you
must define the macro.
To define an interface-range macro, enter this command:
Define the Interface Range
This example shows how to define an interface-range macro named “test” to select Fast Ethernet interfaces
5/1 through 5/4:
FTOS(config)# define interface-range test gigabitethernet 5/1 - 4
Choose an Interface-range Macro
To use an interface-range macro in the interface range command, enter this command:
The example below shows how to change to the interface-range configuration mode using the
interface-range macro named “test.”
FTOS(config)# interface range macro test
FTOS(config-if)#
Command Syntax Command Mode Purpose
FTOS(config)# define interface-range macro_name {vlan
vlan_ID - vlan_ID} | {{gigabitethernet | tengigabitethernet |
fortyGigE
} slot/interface - interface} [ , {vlan vlan_ID -
vlan_ID} {{gigabitethernet | tengigabitethernet | fortyGigE}
slot/interface - interface}]
CONFIGURATION Defines the interface-range
macro and saves it in the
running configuration file.
Command Syntax Command Mode Purpose
interface range macro name CONFIGURATION Selects the interfaces range to be configured using the values
saved in a named interface-range macro.