Cisco 4500M Software Manual page 193

Software guide
Table of Contents

Advertisement

Chapter 13
Configuring SmartPort Macros
Command
Step 7
Switch# show parser macro
Step 8
Switch# show running-config
interface interface-id
Step 9
Switch# copy running-config
startup-config
The no form of the macro name global configuration command only deletes the macro definition. It
does not affect the configuration of those interfaces on which the macro is already applied. You can
delete a macro-applied configuration on an interface by entering the default interface interface-id
interface configuration command. Alternatively, you can create an anti-macro for an existing macro that
contains the no form of all the corresponding commands in the original macro. Then apply the
anti-macro to the interface.
The following sections illustrate how to apply and display the attachments on each of the supported
macros:
cisco-desktop
This example shows how to apply the cisco-desktop macro to interface Fast Ethernet interface 2/9:
Switch(config)# interface fastethernet2/9
Switch(config-if)# macro apply cisco-desktop $AVID 35
Switch(config-if)# end
Switch# show parser macro name cisco-desktop
Macro name : cisco-desktop
Macro type : customizable
# Basic interface - Enable data VLAN only
# Recommended value for access vlan (AVID) should not be 1
switchport access vlan $AVID [access_vlan_id]
switchport mode access
# Enable port security limiting port to a single
# MAC address -- that of desktop
switchport port-security
# Ensure port-security age is greater than one minute
# and use inactivity timer
# "Port-security maximum 1" is the default and will not
# Show up in the config
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
# Configure port as an edge network port
spanning-tree portfast
spanning-tree bpduguard enable
Switch# show parser macro description
Interface
--------------------------------------------------------------
Fa2/9
--------------------------------------------------------------
OL-6696-01
cisco-desktop, page 13-5
cisco-phone, page 13-6
cisco-switch, page 13-6
cisco-router, page 13-7
Macro Description
cisco-desktop
Purpose
Verifies that the macro was created.
Verifies that the macro is applied to an interface.
(Optional) Saves your entries in the configuration file.
Software Configuration Guide—Release 12.2(25)EW
Configuring Smart-Port Macros
13-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 series

Table of Contents