22-8
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 22 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 22-8
•
MAC Address-Based Event Trigger, page 22-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.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...