14-10
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 14 Configuring Auto Smartports Macros
Configuring Auto Smartports
This example shows how to use two built-in Auto Smartports macros for connecting Cisco switches and
Cisco IP phones to the switch. This example modifies the default voice VLAN, access VLAN, and native
VLAN for the trunk interface:
Switch# configure terminal
Switch(config)#!!! the next command modifies the access and voice vlans
Switch(config)#!!! for the built in Cisco IP phone auto smartport macro
Switch(config)# macro auto execute CISCO_PHONE_EVENT builtin CISCO_PHONE_AUTO_SMARTPORT
ACCESS_VLAN=10 VOICE_VLAN=20
Switch(config)#
Switch(config)#!!! the next command modifies the Native vlan used for inter switch trunks
Switch(config)# macro auto execute CISCO_SWITCH_EVENT builtin CISCO_SWITCH_AUTO_SMARTPORT
NATIVE_VLAN=10
Switch(config)#
Switch(config)#!!! the next command enables auto smart ports globally
Switch(config)# macro auto global processing cdp-fallback
Switch(config)#
Switch(config)# exit
Switch# !!! here's the running configuration of the interface connected
Switch# !!! to another Cisco Switch after the Macro is applied
Switch#
Switch# show running-config interface gigabitethernet1/0/1
Switch# show running-config interface gigabitethernet0/1
Building configuration...
Step 3 remote url Specify a remote server location for the remote macro file:
The syntax for the local flash file system on the standalone switch or
the stack master: flash:
The syntax for the local flash file system on a stack member:
flash member number:
The syntax for the FTP:
ftp:[[//username[:password]@location]/directory]/filename
The syntax for an HTTP server:
http://[[username:password]@]{hostname |
host-ip}[/directory]/filename
The syntax for a secure HTTP server:
https://[[username:password]@]{hostname |
host-ip}[/directory]/filename
The syntax for the NVRAM:
nvram://[[username:password]@][/directory]/filename
The syntax for the Remote Copy Protocol (RCP):
rcp:[[//username@location]/directory]/filename
The syntax for the Secure Copy Protocol (SCP):
scp:[[//username@location]/directory]/filename
The syntax for the TFTP: tftp:
[[//location]/directory]/filename
Step 4 end Return to privileged EXEC mode.
Step 5 show running-config Verify your entries.
Step 6 copy running-config startup-config Save your entries in the configuration file.
Command Purpose