Defining And Using Interface-Range Macros - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 8
Configuring Interfaces
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
Command
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}]
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:
Command
Switch# show running-config
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:
Command
Switch(config)# interface range macro
name
This example shows how to change to the interface-range configuration mode using the interface-range
macro enet_list:
OL-30933-01
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.
Purpose
Defines the interface-range macro and
saves it in the running configuration file.
Purpose
Shows the defined interface-range macro
configuration.
Purpose
Selects the interface range to be configured using
the values saved in a named interface-range macro.
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Defining and Using Interface-Range Macros
8-11

Advertisement

Table of Contents
loading

Table of Contents