Configuring
Autosmart Ports
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Information about Autosmart Ports
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 SmartPorts 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 SmartPorts 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 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 (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 and some MAC address. These triggers are enabled as long as Auto SmartPort is enabled.
You can configure user-defined trigger groups for profiles and devices. The name of the trigger group is used to associate a user-defined macro.
Autosmart Port Macros
The Auto SmartPort macros are groups of CLI commands. Detection of devices on a port triggers the application of the macro for the device. System built-in macros exist for various devices, and, by default, system built-in triggers are mapped to the corresponding built-in macros. You can change the mapping of built-in triggers or macros as needed.
A macro basically applies or removes a set of CLIs on an interface based on the link status. In a macro, the link status is checked. If the link is up, then a set of CLIs is applied; if the link is down, the set is removed (the no format of the CLIs are applied). The part of the macro that applies the set of CLIs is termed macro. The part that removes the CLIs (the no format of the CLIs) are termed antimacro.
When a device is connected to an Autosmart Port, if it gets classified as a lighting end point, it invokes the event trigger CISCO_LIGHT_EVENT, and the macro CISCO_LIGHT_AUTO_SMARTPORT is executed.
Commands executed by CISCO_LIGHT_AUTO_SMARTPORT
When the macro is executed, it runs a series of commands on the switch.
-
switchport mode access
-
switchport port-security violation restrict
-
switchport port-security mac-address sticky
-
switchport port-security
-
power inline port poe-ha
-
storm-control broadcast level 50.00
-
storm-control multicast level 50.00
-
storm-control unicast level 50.00
-
spanning-tree portfast
-
spanning-tree bpduguard enable
Enabling Autosmart Port
![]() Note | By default, Auto SmartPort is disabled globally. To disable Auto SmartPorts macros on a specific port, use the no macro auto global processing interface command before enabling Auto SmartPort globally. To enable Auto SmartPort globally, use the macro auto global processing global configuration command. To enable Auto SmartPorts, perform this task: |
1.
enable
2.
configure terminal
3.
device
classifier
4.
macro auto global processing
7.
copy running-config
startup-config
DETAILED STEPS
Example: Enabling AutoSmart Ports
This example shows how you can enable to AutoSmart Port.
Device> enable Device# configure terminal Device(config)# device classifier Device(config)# macro auto global processing Device(config)# end

Feedback