EasyManuals Logo

Cisco Catalyst 4500 Series Administration Guide

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
Page #619 background imageLoading...
Page #619 background image
20-15
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 20 Configuring SmartPort Macros
Configuring Static SmartPort Macros
You can only delete a global macro-applied configuration on a switch by entering the no version of each
command in the macro. You can delete a macro-applied configuration on a port by entering the default
interface interface-id interface configuration command.
This example shows how to display the cisco-desktop macro, to apply the macro and to set the access
VLAN ID to 25 on an interface:
Switch# show parser macro cisco-desktop
--------------------------------------------------------------
Macro name : cisco-desktop
Macro type : default
# Basic interface - Enable data VLAN only
Step 4
macro global {apply | trace}
macro-name [parameter {value}]
[
parameter {value}] [parameter
{
value}]
Applies each individual command defined in the macro to the switch by
entering macro global apply macro-name. Specify macro global trace
macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Append the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
Use the macro global apply macro-name ? command to display a list of
any required values for the macro. If you apply a macro without entering
the keyword values, the commands are invalid and are not applied.
(Optional) Specify unique parameter values that are specific to the
switch. You can enter up to three keyword-value pairs. Parameter
keyword matching is case sensitive. The corresponding value replaces
all matching occurrences of the keyword.
Step 5
interface interface-id
(Optional) Enters interface configuration mode, and specify the
interface on which to apply the macro.
Step 6
default interface interface-id
(Optional) Clears all configuration from the specified interface.
Step 7
macro {apply | trace} macro-name
[parameter {value}] [parameter
{
value}] [parameter {value}]
Applies each individual command defined in the macro to the port by
entering macro global apply macro-name. Specify macro global trace
macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Append the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
Use the macro global apply macro-name ? command to display a list of
any required values for the macro. If you apply a macro without entering
the keyword values, the commands are invalid and are not applied.
(Optional) Specify unique parameter values that are specific to the
switch. You can enter up to three keyword-value pairs. Parameter
keyword matching is case sensitive. The corresponding value replaces
all matching occurrences of the keyword.
Step 8
end
Returns to privileged EXEC mode.
Step 9
show running-config interface
interface-id
Verifies that the macro is applied to an interface.
Step 10
copy running-config startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 4500 Series and is the answer not in the manual?

Cisco Catalyst 4500 Series Specifications

General IconGeneral
SeriesCatalyst 4500 Series
CategorySwitch
Layer SupportLayer 2, Layer 3
Form FactorModular chassis
StackableNo
Chassis Slots3, 6, 7, 10
Power Supply OptionsAC, DC
RedundancyPower supply, Supervisor engine
Network ManagementCisco IOS Software CLI, SNMP, Cisco Prime Infrastructure
FeaturesSecurity, QoS
Port DensityUp to 384 ports per chassis
Security Features802.1X, ACLs, DHCP Snooping, Dynamic ARP Inspection, IP Source Guard
Supervisor Engine8-E

Related product manuals