EasyManua.ls Logo

Dell S4048-ON - Defining Interface Range Macros; Define the Interface Range; Choosing an Interface-Range Macro

Dell S4048-ON
1146 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Dell(config-if)# interface range tengigabitethernet 5/1 - 23, tengigabitethernet 1/1 - 2
Dell(config-if-range-te-5/1-23,te1/1-2)# no shutdown
Dell(config-if-range-te-5/1-23,te1/1-2)#
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
Dell(config-if-range-te-1/1-1/2)# interface range Vlan 2 – 100 , Port 1 – 25
Dell(config-if-range-te-1/1-1/2-vl-2-100-po-1-25)# no shutdown
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
define interface-range macro_name {vlan vlan_ID - vlan_ID | {{tengigabitethernet | fortyGigE}
slot/port/[subport] - slot/port/[subport]}} [ , {vlan vlan_ID - vlan_ID | {{tengigabitethernet
| fortyGigE} slot/interfaceslot/port/[subport] - interfaceslot/port/[subport]}]
Dene the Interface Range
The following example shows how to dene an interface-range macro named “test” to select Ten Gigabit Ethernet interfaces 5/1 through
5/4.
Example of the define interface-range Command for Macros
Dell(config)# define interface-range test tengigabitethernet 5/1 - 5/4
Choosing an Interface-Range Macro
To use an interface-range macro, use the following command.
Selects the interfaces range to be congured using the values saved in a named interface-range macro.
CONFIGURATION mode
interface range macro name
Example of Using a Macro to Change the Interface Range Conguration Mode
The following example shows how to change to the interface-range conguration mode using the interface-range macro named “test.
Dell(config)# interface range macro test
Dell(config-if)#
Interfaces
413

Table of Contents

Related product manuals