16-4
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 16 Configuring Smartports Macros
Monitoring and Maintaining Smartports Macros
Monitoring and Maintaining Smartports Macros Configuration Examples for Smartports Macros

Applying the Smartports Macro: Examples

This example shows how to display the cisco-ie-desktop macro, how to apply the macro and to set the
access VLAN ID to 25 on an interface:
Switch# show parser macro name cisco-ie-desktop
--------------------------------------------------------------
Macro name : cisco-ie-desktop
Macro type : default interface
# macro keywords ACCESS_VLAN
#macro name cisco-ie-desktop
switchport mode access
switchport access vlan ACCESS_VLAN
switchport port-security
switchport port-security maximum 1
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
spanning-tree portfast
spanning-tree bpduguard enable
no macro description
macro description cisco-ie-desktop
--------------------------------------------------------------
Switch#
Switch# configure terminal
Switch(config)# interface gigabitethernet1/4
Switch(config-if)# macro apply cisco-ie-desktop $AVID 25
This example shows how to display the cisco-ethernetip macro and how to apply it to an interface:
Switch# show parser macro name cisco-ethernetip
Macro name : cisco-ie-global
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.
Tab l e 16-2 Commands for Displaying Smartports Macros
Command Purpose
show parser macro Displays all Smartports macros.
show parser macro name macro-name Displays a specific Smartports macro.
show parser macro brief Displays the Smartports macro names.
show parser macro description [interface
interface-id]
Displays the Smartports macro description for all interfaces or f or a
specified interface.
Command Purpose