CHAPT ER
12-1
Catalyst 3560 Switch Software Configuration Guide
OL-8553-06
12
Configuring Auto Smartports Macros
This chapter describes how to configure and apply Auto Smartports and static Smartports macros on the
Catalyst 3560 switch.
Note For complete syntax and usage information for the commands used in this chapter, see the command
reference for this release.
Understanding Auto Smartports and Static Smartports Macros, page 12-1
Configuring Auto Smartports, page 12-2
Configuring Static Smartports Macros, page 12-11
Displaying Auto Smartports and Static Smartports Macros, page 12-14

Understanding Auto Smartports and Static Smartports Macros

Auto Smartports 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 Smartports macro on the
port. When there is a link-down event on the port, the switch removes the macro. For example, when you
connect a Cisco IP phone to a port, Auto Smartports automatically applies the IP phone macro. The IP
phone macro enables quality of service (QoS), security features, and a dedicated voice VLAN to ensure
proper treatment of delay-sensitive voice traffic.
In addition to Auto Smartports macros, static Smartports macros provide port configuration that you
manually apply based on the device connected to the port. When you apply a static Smartports macro
the CLI commands within the macro are added to the existing port configuration. When there is a
link-down event on the port, the switch does not remove the static macro.
Auto Smartports 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 invokes a CDP event trigger: Cisco IP phone, Cisco wireless access point, Cisco switch, or
Cisco router. Other event triggers use MAC authentication bypass (MAB) and 802.1x authentication
messages.
The Auto Smartports macros embedded in the switch software are groups of CLI commands. The
CISCO_PHONE event detected on a port triggers the switch to apply the commands in the
CISCO_PHONE_AUTO_SMARTPORT macro. You can also cr eate user-defined macros by using the
Cisco IOS scripting capability, which is a BASH-like language syntax for command automation and
variable replacement.