cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
382
Views
0
Helpful
2
Replies
wyoneda
Beginner

Configuration of 3850 switch to auto configure ports for 3602I APs

I have been trying to configure a 3850 switch from the 3750x configurations we currently are using. The one part of the configuration I haven't been able to move over is the Macro we have to auto configure the 3750x ports when one of our 3602 LWAPs are plugged in. On the 3750 we have a macro that we call CAPWAP and it triggers when is see's our AP plugged into a port and configures it to be a trunk (see macro below). But on the 3850 it doesn't seem to work. I tried changing the name to CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT and it does make some changes but doesn't seem to be executing the macro correctly.

macro auto execute CAPWAP  {
 if [[ $LINKUP == YES ]]
  then conf t
  interface $INTERFACE
  no sw acc vl 10
  no switchport voice vlan 200
  no auto qos voip cisco-phone
  no authentication event fail action next-method
  no authentication event server dead action authorize vlan 10
  no authentication event server alive action reinitialize
  no authentication host-mode multi-auth
  no authentication open
  no authentication order mab dot1x
  no authentication priority  mab dot1x
  no authentication port-control auto
  no authentication periodic
  no authentication timer reauthenticate server
  no authentication violation restrict
  no mab
  no dot1x pae
  no dot1x timeout tx-period
  switchport trunk encap dot1q
  switchport mode trunk
  switchport trunk native vlan 98
  switchport trunk allowed vlan 98,104,120,128
  description *** AP Port ***
  macro description $TRIGGER
  exit
  else conf t
  interface $INTERFACE
  switchport mode access
  sw ho
  sw acc vl 10
  switchport voice vlan 200
  auto qos voip cisco-phone
  authentication event fail action next-method
  authentication event server dead action authorize vlan 10
  authentication event server alive action reinitialize
  authentication host-mode multi-auth
  authentication open
  authentication order  mab dot1x
  authentication priority mab  dot1x
  authentication port-control auto
  authentication periodic
  authentication timer reauthenticate server
  authentication violation restrict
  mab
  dot1x pae authenticator
  dot1x timeout tx-period 10
  no switchport trunk native vlan 98
  no switchport trunk encap dot1q
  no switchport trunk allowed vlan 98,104,120,128
  no description *** AP Port ***
  no macro description $TRIGGER
  exit
 fi
}

Thanks for any help.

2 REPLIES 2
Leo Laohoo
VIP Community Legend

Kindly move this thread to the EEM section.

HI There,

Do you know what happened to traditional user macros in IOS-XE?

Kind regards,