EasyManua.ls Logo

Cisco Catalyst 4500 Series - Defining and Using Interface-Range Macros

Cisco Catalyst 4500 Series
1814 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...
8-11
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL-30933-01
Chapter 8 Configuring Interfaces
Defining and Using Interface-Range Macros
The LED is green (on) when the link is active.
The LED is off when the link is down.
The LED is amber when there is a POST failure.
To display the link status, use the show interfaces fastethernet 1 privileged EXEC command.
Defining and Using Interface-Range Macros
You can define an interface-range macro to automatically select a range of interfaces for configuration.
Before using the macro keyword in the interface-range macro command string, you must define the
macro.
To define an interface-range macro, enter this command:
This example shows how to define an interface-range macro named enet_list to select Fast Ethernet
interfaces 5/1 through 5/4:
Switch(config)# define interface-range enet_list fastethernet 5/1 - 4
To show the defined interface-range macro configuration, enter this command:
This example shows how to display the defined interface-range macro named enet_list:
Switch# show running-config | include define
define interface-range enet_list FastEthernet5/1 - 4
Switch#
To use an interface-range macro in the interface range command, enter this command:
This example shows how to change to the interface-range configuration mode using the interface-range
macro enet_list:
Command Purpose
Switch(config)# define interface-range macro_name
{vlan vlan_ID - vlan_ID} | {{fastethernet |
gigabitethernet | tengigabitethernet}
slot/interface - interface}
[, {vlan vlan_ID - vlan_ID} {{fastethernet |
gigabitethernet | tengigabitethernet}
slot/interface - interface}]
Defines the interface-range macro and
saves it in the running configuration file.
Command Purpose
Switch# show running-config
Shows the defined interface-range macro
configuration.
Command Purpose
Switch(config)# interface range macro
name
Selects the interface range to be configured using
the values saved in a named interface-range macro.

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Related product manuals