10-04-2011 09:06 AM - edited 03-07-2019 02:35 AM
We are playing around with the Auto SmartPort feature below is our configuration:
macro auto execute CISCO_PHONE_EVENT builtin CISCO_PHONE_AUTO_SMARTPORT ACCESS_VLAN=2 VOICE_VLAN=3
macro auto execute CISCO_SWITCH_EVENT builtin CISCO_SWITCH_AUTO_SMARTPORT NATIVE_VLAN=1 VOICE_VLAN=3 MGNT_VLAN=4
When we plug in a phone, vlan 2 and vlan 3 are created (if not already there).
When we plug in a switch no vlan's are created. Is there a way to have Auto SmartPort create vlan 3 and vlan 4 (if not alread created) when we plug in a switch?
10-04-2011 11:11 AM
Please check the output of "sh macro auto device"..Every macro has some varaibles listed along that..Only those variables should be given along that macro,and only those vlans which are mentioned in correct variables will be created.
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
Device:switch
Default Macro:CISCO_SWITCH_AUTO_SMARTPORT
Current Macro:CISCO_SWITCH_AUTO_SMARTPORT
Configurable Parameters:NATIVE_VLAN
Defaults Parameters:NATIVE_VLAN=1
Current Parameters:NATIVE_VLAN=1
Hope that helps.
Thanks,
-Ankur
10-04-2011 01:30 PM
So the statements will:
CISCO_PHONE_AUTO_SMARTPORT - will create vlan 1 and vlan 2
CISCO_SWITCH_AUTO_SMARTPORT - will create vlan 1
Parameters for other vlans added will not create the vlan. What I mean is that if I add:
MGNT_VLAN=3 to the CISCO_SWITCH_AUTO_SMARTPORT - vlan 3 will not be created?
10-04-2011 09:43 PM
Yes,you are right.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide