21-8
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 21 Configuring Cisco IOS Auto Smartport Macros
Configuring Auto Smartport Macros
Switch(config)#!!! the next command enables auto smart ports globally
Switch(config)# macro auto global processing fallback cdp
Switch(config)#
Switch(config)# exit
Switch#
Switch# show running-config interface gigabitethernet2/7
Building configuration...
Current configuration : 284 bytes
!
switchport access vlan 10
switchport mode access
switchport voice vlan 2
switchport port-security maximum 2
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
auto qos voip cisco-phone
qos trust device cisco-phone
neighbor device type phone
macro description CISCO_PHONE_EVENT
spanning-tree portfast
spanning-tree bpduguard enable
service-policy input AutoQos-VoIP-Input-Cos-Policy
service-policy output AutoQos-VoIP-Output-Policy
end
Note You can also use the macro auto device command to simplify changing the parameters for a built-in
functions for a device type.
Configuring User-Defined Event Triggers
You can configure two types of event triggers: user-defined and MAC address-based.
The following sections describe these triggers:
• 802.1X-Based Event Trigger, page 21-8
• MAC Address-Based Event Trigger, page 21-9
802.1X-Based Event Trigger
When using MAB or 802.1X authentication to trigger Auto Smartport macros, you need to create an
event trigger that corresponds to the Cisco AV pair (auto-smart-port=event trigger) sent by the
RADIUS server.
To configure an event trigger, perform this task:
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# shell trigger
identifier description
Specifies the event trigger identifier and description.
The identifier should have no spaces or hyphens between words.
Step 3
Switch(config)# end
Returns to privileged EXEC mode.