14-6
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 14 Configuring Auto Smartports Macros
Configuring Auto Smartports
Configuring Auto Smartports Default Parameter Values
The switch automatically maps from event triggers to built-in macros. You can follow this procedure to
replace Auto Smartports macro default parameter values with values that are specific to your switch.
This procedure is optional.
Beginning in privileged EXEC mode:
To return to the default setting, use the no macro auto device {macro name} parameter=value global
configuration command.
This example shows how to view the IP phone macro parameter values and how to change the default
voice VLAN to 20. When you change the default values, they are not applied on interfaces that already
have applied macros. The configured values are applied at the next link-up event. Note that the exact text
string was used for VOICE_VLAN. The entry is case sensitive.
Switch# show macro auto device phone
Device:phone
Default Macro:CISCO_PHONE_AUTO_SMARTPORT
Current Macro:CISCO_PHONE_AUTO_SMARTPORT
Configurable Parameters:ACCESS_VLAN VOICE_VLAN
Defaults Parameters:ACCESS_VLAN=1 VOICE_VLAN=2
Current Parameters:ACCESS_VLAN=1 VOICE_VLAN=2
Switch# configure terminal
Switch(config)# macro auto device phone VOICE_VLAN=20
Switch(config)# end
Switch# show macro auto device phone
Device:phone
Command Purpose
Step 1 show macro auto device Display the macro default parameter values.
Step 2 configure terminal Enter global configuration mode.
Step 3 macro auto device {access-point |
ip-camera | lightweight-ap |
media-player | phone | router | switch}
[parameter=value]
Replace the specified macro default parameter values. Enter new values
in the form of name value pair separated by a space:
[<name1>=<value1> <name2>=<value2>...]. Default values are shown
for each macro default parameter value.
access-point NATIVE_VLAN=1
ip-camera ACCESS_VLAN=1
lightweight-ap ACCESS_VLAN=1
media-player ACCESS_VLAN=1
phone ACCESS_VLAN=1 VOICE_VLAN=2
router NATIVE_VLAN=1
switch NATIVE_VLAN=1
Note You must enter the correct parameter name (for example,
VOICE_VLAN) because this text string must match the text
string in the built-in macro definition.
Step 4 end Return to privileged EXEC mode.
Step 5 show macro auto device Verify your entries.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.