CHAPTER
22-1
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
 
22
Configuring Cisco IOS Auto Smartport Macros
This chapter describes how to configure and apply Auto Smartport macros on the Catalyst 4500 series 
switch.
This chapter includes the following major sections:
• About Auto Smartport Macros, page 22-1
• Configuring Auto Smartport Macros, page 22-3
• Displaying Auto Smartport, page 22-13
Note For complete syntax and usage information for the switch commands used in this chapter, see the
Cisco IOS Command Reference Guides for the Catalyst 4500 Series Switch.
If a command is not in the Cisco Catalyst 4500 Series Switch Command Reference , you can locate it in 
the Cisco IOS Master Command List, All Releases.
About Auto Smartport Macros
Auto Smartport macros dynamically configure ports based on the device type detected on the port. When 
the switch detects a new device on a port, it applies the appropriate Auto Smartport macro. When a 
link-down event occurs on the port, the switch removes the macro. For example, when you connect a 
Cisco IP phone to a port, Auto Smartport automatically applies the Cisco IP phone macro. The Cisco IP 
phone macro enables quality of service (QoS), security features, and a dedicated voice VLAN to ensure 
proper treatment of delay-sensitive voice traffic.
Auto Smartport uses event triggers to map devices to macros. The most common event triggers are based 
on Cisco Discovery Protocol (CDP) messages received from connected devices. The detection of a 
device (Cisco IP phone, Cisco wireless access point, Cisco switch, or Cisco router) invokes an event 
trigger for that device.
Link Layer Discovery Protocol (LLDP) is used to detect devices that do not support CDP. Other 
mechanisms used as event triggers include the 802.1X authentication result and MAC-address learned.
System built-in event triggers exist for various devices based mostly on CDP and LLDP messages 
(Table 22-1) and some MAC address.and some MAC address. (Through Cisco IOS Release 12.2(54)SG, 
DMP is detected using the MAC address. Starting with Cisco IOS Release 15.0(2)SG, DMP is also 
detected using CDP.) These triggers are enabled as long as Auto Smartport is enabled.
You can also define your own trigger. User-defined triggers can be CDP/LLDP-based, a group of MAC 
addresses, or the value of the attribute-value (AV) pair for the auto-smart-port keyword.