Cisco Catalyst 3750-X Software Configuration Manual page 438

Hide thumbs Also See for Catalyst 3750-X:
Table of Contents

Advertisement

Configuring Auto Smartports
Beginning in privileged EXEC mode:
Command
Step 1
configure terminal
Step 2
shell trigger identifier description
Step 3
end
Step 4
show shell triggers
Step 5
copy running-config startup-config
Use the no shell trigger identifier global configuration command to delete the event trigger.
This example shows how to map a user-defined event trigger called RADIUS_MAB_EVENT to the
built-in macro CISCO_AP AUTO_SMARTPORT, replace the default VLAN with VLAN 10, and how
to verify the entries.
a.
b.
c.
d.
Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# !!! create a user defined trigger and map
Switch(config)# !!! a system defined macro to it
Switch(config)# !!! first create the trigger event
Switch(config)# shell trigger RADIUS_MAB_EVENT MAC_AuthBypass Event
Switch(config)#
Switch(config)#!!! map a system defined macro to the trigger event
Switch(config)# macro auto execute RADIUS_MAB_EVENT builtin ?
_ CISCO_DMP_AUTO_SMARTPORT
_ CISCO_IPVSC_AUTO_SMARTPORT
CISCO_AP_AUTO_SMARTPORT
CISCO_LWAP_AUTO_SMARTPORT
CISCO_PHONE_AUTO_SMARTPORT
CISCO_ROUTER_AUTO_SMARTPORT
CISCO_SWITCH_AUTO_SMARTPORT
LINE
Switch(config)# macro auto execute RADIUS_MAB_EVENT builtin CISCO_AP_AUTO_SMARTPORT
ACCESS_VLAN=10
Switch(config)# exit
Switch# show shell triggers
User defined triggers
---------------------
Trigger Id: RADIUS_MAB_EVENT
Trigger description: MAC_AuthBypass Event
Trigger environment:
Trigger mapping function: CISCO_AP_SMARTPORT
<output truncated>
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
14-12
Connect the device to a MAB-enabled switch port.
On the RADIUS server, set the attribute-value pair to auto-smart-port=RADIUS_MAB_EVENT.
On the switch, create the event trigger RADIUS_MAB_EVENT.
The switch recognizes the attribute-value pair=RADIUS_MAB_EVENT response from the
RADIUS server and applies the macro CISCO_AP_AUTO_SMARTPORT.
<cr>
Purpose
Enter global configuration mode.
Specify the event trigger identifier and description. The identifier should
have no spaces or hyphens between words.
Return to privileged EXEC mode.
Display the event triggers on the switch.
(Optional) Save your entries in the configuration file.
End with CNTL/Z.
Chapter 14
Configuring Auto Smartports Macros
OL-21521-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3560-x

Table of Contents