20-13
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 20 Configuring SmartPort Macros
Displaying SmartPort Macros
# Hardcode speed and duplex to router
switchport mode trunk
switchport nonegotiate
speed 100
duplex full
# Configure qos to trust this interface
auto qos voip trust
qos trust dscp
# Ensure fast access to the network when enabling the interface.
# Ensure that switch devices cannot become active on the interface.
spanning-tree portfast
spanning-tree bpduguard enable
Switch# show parser macro description
Interface Macro Description
--------------------------------------------------------------
Fa2/9 cisco-router
--------------------------------------------------------------
Displaying SmartPort Macros
To display the SmartPort macros, use one or more of the privileged EXEC commands in Table 20-2.
Configuring Static SmartPort Macros
This section describes how to configure and enable static SmartPort macros:
• Default SmartPort Macro Configuration, page 20-4
• SmartPort Macro Configuration Guidelines, page 20-6
• Applying Static SmartPort Macros, page 20-14
Default Static SmartPort Configuration
No static SmartPort macros are enabled on the switch.
Table 20-2 Commands for Displaying SmartPort Macros
Command Purpose
show parser macro
Displays all configured macros.
show parser macro name macro-name
Displays a specific macro.
show parser macro brief
Displays the configured macro names.
show parser macro description [interface
interface-id]
Displays the macro description for all interfaces or for a specified
interface.