cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
925
Views
0
Helpful
3
Replies

SmartPort Vlan

dtom
Level 1
Level 1

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?

3 Replies 3

ankugarg
Level 3
Level 3

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

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?

Yes,you are right.

Review Cisco Networking for a $25 gift card