Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Cisco Support Community site will be in read only mode on Dec14, 2017 from 12:01am PST to 11:30am for standard maintenance. Sorry for the inconvenience.

New Member

Option 43 vs. DNS Resolution

For those of us that are familiar with the process by which an AP finds its controller, we know that there is L2 broadcast, Option 43, DNS resolution, and shared neighbor information via OTP, as well as the final option to statically assign a controller IP via the 'lwapp ap controller ip address x.x.x.x'. If you watch the process via 'debug lwapp client event' process on an AP, you will see that each IP address is categorized as to how it was learned using a number (0-4). Here's my question: Are these numbers used in a priority order when an AP attempts to join a controller? I had a 1252 on a 2106 running 5.2.157.0 and no domain (the AP got its controller IP via 'option 43 ascii x.x.x.x' from a DHCP scope on a 2960 switch). Then I moved it to my lab setting, where it's a 4402-25 running 4.2.130.0 and a domain. I expected the new resolution of CISCO-LWAPP-CONTROLLER to be successful and have it join my controller. However, all I saw was the stored entries in NVRAM from the previous controller to which it was joined. I had a couple of options to force it to join my lab controller, and I chose Option 43. That seemed to work and the AP happily downgraded its code. Any thoughts/comments? I'm just surprised that the new DNS resolution (which did work b/c the debug showed 'translating [OK]') didn't allow the AP to join my lab controller.

Regards,

Scott

37 REPLIES
New Member

Re: Option 43 vs. DNS Resolution

After we turn on debugging, what is the command to view the debugs??

New Member

Re: Option 43 vs. DNS Resolution

laxcis -

When you turn on debugging, it should show up rather immediately. If you are not getting any debug information, that means that your AP is not getting its data to the controller. If you are running debug from the controller, you can use the following:

1. debug lwapp events enable (shows all)

2. debug client (restrict to a particular AP)

If you are running the debug from the AP, the following will help:

1. debug lwapp client event

2. debug lwapp client packet

3. debug lwapp client error

I would recommend only running one debug type at a time so that your output isn't mixed up. You must be consoled to an AP in privileged/exec mode to run the debug commands. The default login is still Cisco/Cisco, unless it has been changed by the administrator (from the controller, use this to change the password on the AP 'config ap username password ')

You can use Cisco.com, the TAC search tool, Cisco's Support Wiki, and the 'net at large to find many relevant docs for troubleshooting the AP join process. If you need some docs specifically, I have a few I can share.

Hope that helps.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

I do have a open case with TAC and they want me to do the following. After I enable this though, what do I do next to see the debug? Where do I go to see them?

debug mac addr

debug lwapp events enable

debug dhcp message enable

debug dhcp packet enable

debug pm pki enable

New Member

Re: Option 43 vs. DNS Resolution

nevermind, figured out the debug. I sent it to TAC.

New Member

Re: Option 43 vs. DNS Resolution

Laxcis -

Be sure and post back what your issue was and how you resolved it. Your response 'nevermind, I figured it out" is going to leave a lot of people reading the thread hanging. The NetPro forums are for professionals to help ourselves and eachother. Without subscribing to a PROBLEM/SOLUTION methodology, this thread would otherwise not be useful to others.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

of course I would post what I find. The "nevermind I got it" was in reference to how to see the debugging going on. But I finally realized it just shows up on the screen. My AP's still are not locating the right WLC, and I am waiting for TAC to get back to me.

New Member

Re: Option 43 vs. DNS Resolution

Have you run debug on an AP? It will tell you what controllers it has learned about and how. Once you know if and how your APs are learning about your controllers, you can begin to figure out where it is breaking down. If you don't see the address you want listed, review the configuration for that method (i.e. Option 43, DNS, etc.). For the short term, you'll make the most progress by hard coding one of your APs with the controller address you want.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

Would you be able to tell me how to hard code my AP with the controller I want? That would be terrific. It's a 1242.

New Member

Re: Option 43 vs. DNS Resolution

Sure. Plug your AP into a power source but leave the network port disconnected. The AP will boot and realize it has no connection to the rest of the network and won't attempt the LWAPP join process. Then you can run the following commands to set it up:

clear lwapp private-config

lwapp ap controller ip address x.x.x.x

As for the DNS entries. There was a time I thought the same thing. You actually create the same 'A' record multiple times, each time using a different controller IP address. So each DNS record is named CISCO-LWAPP-CONTROLLER.domain. What happens when an AP joins is that it gets all records returned. Then it sends a join request to ALL of those controllers. Which controller it ends up on is due in part to several factors, but most important is the AP load. It will choose the controller with the least load (this information is sent to the AP by the controller in its 'DISCOVERY RESPONSE'). You can override this behavior with a controller configured as 'Master Controller.' However, this is recommended for provisioning APs in a controlled lab environment, and is not recommended for production. In your case, what will probably end up happening is that it will join a controller you don't want it joined to. Then you go into the config for that AP via the controller and set the PRIMARY, SECONDARY, and TERTIARY controller names. Once saved to the AP's NVRAM, it will unicast to join that controller first the next time around. Once you save it, you can safely reboot it. The names you put in for the controllers need to be the HOST names of the controllers, and may or may not actually be DNS records depending on how you have set your DNS up. In code version 5.0 and up, these fields also have an IP address field.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

When I try and run these commands on the AP CLI, it says "Error!! Command is disabled"

I googled it and it appears I need to change the username/pwd. Easy to do?

New Member

Re: Option 43 vs. DNS Resolution

Did you log in as exec user first? If the AP has not ever been on a controller, or if the controller is set to default for user/pass, it will still be Cisco/Cisco. If the AP gives you the 'command disabled' error, that usually means that it has run its LWAPP process. I found that leaving the AP disconnected from the network usually works. Give me a min to test and I'll get back to you.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

Got it - you can't run the command 'clear lwapp private-config' UNLESS the default user/pass HAS been changed. Once those parameters are changed, you'll have the ability to run that command. However, in this case it isn't necessary. Just use the 'lwapp ap controller ip address x.x.x.x' command and you should be all set. Never hurts to use the reset button too. Just hold it down for 1-2 sec. while powering on the AP and let go when you see the LED go amber.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

Still get the same message about command is disabled. Looks like i need to change the username/pwd. I'm not quite sure on how to do that though. Or can I get by with just changing the pwd?

New Member

Re: Option 43 vs. DNS Resolution

It's been a while since I did that, and it's coming back now. It wasn't an issue for me b/c I have a couple of 2106 controllers that I take out into the field with me to help with troubleshooting. You can't run any of those commands without changing the password. So what I would do is hook the AP up to my 2106 (it uses local layer 2 broadcast to join) and then change the username and password. You can do this from the controller using the comand 'config ap username user_id password passwd [all | ap_name ]'. This allows you to restrict it to the one AP you have, but since you can't join it to a controller you can't do that. Send me the same debugs you sent Cisco TAC and I'll look at them. Do you have admin access to your infrastructure, or are the switches/controllers under someone else's provisioning?

spickles@vpnsystems.com">spickles@vpnsystems.com

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

The AP actually does join a controller (just the wrong one), so I can do those commands. Let me try that and see how it goes first.

New Member

Re: Option 43 vs. DNS Resolution

If it does join a controller, then all you need to do is go into the AP and update the PRIMARY controller field and you'll be all set!!

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

Nope, even though the right controller name is in there, it still joins the wrong controller. Firmware version 4.1.8 of the WLC.

New Member

Re: Option 43 vs. DNS Resolution

Ok, so I was able to get the pwd changed on the AP, and clear the lwapp and configure it for the other controller. Do I need to do any sort of save like a copy run start that I normally do on Cisco switches?

New Member

Re: Option 43 vs. DNS Resolution

No. It saves immediately.

New Member

Re: Option 43 vs. DNS Resolution

Scott - Just want to say thank you for all the time you spent on this with me. I really appreciate it. The AP's are now locating the right controller, but it's not due to manually configuring the AP. Honestly, I'm not 100% sure why they are locating it now but I think it may be because I removed one of the two DNS entries for the LWAPP Controller. I had two entries for both controllers. Removed one, and now the AP's go to the right controller. I'll probably re-add the other entry now after the fact. Thanks again. I think this is solved.

New Member

Re: Option 43 vs. DNS Resolution

Laxcis -

No problem, my pleasure. To clarify, you can have multiple DNS entries for CISCO-LWAPP-CONTROLLER, but each time it must point to a different IP address. The fact that you had 4 DNS entries when you only needed 2 surely confused your APs. If you would be so kind as to rate the post(s), I'd appreciate it.

Edit: Even with multiple ways of finding a controller, you still want to make sure you fill in your PRIMARY and SECONDARY controller host names. This is what the AP will use to query a controller to join first, and if that controller is full it will go on to the next one. This is also the method by which you can manually distribute and load balance your APs across multiple controllers, as well as what the APs use for failover/fallback.

Now, does anyone have an answer to my original post..? :)

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

I actually had 2 DNS entries, and each one was indeed pointing to a different controller. So in theory, it should have been ok, but in reality, it wasn't. Once I deleted the 1 entry, then they only found the other controller, which is what I wanted. I always do fill in the Primary and Secondary, but it doesn't seem to always work that great. I have read to on here that the GUI for those fields really don't do much. It's better to use the CLI. Thanks again.

New Member

Re: Option 43 vs. DNS Resolution

Got it - you can't run the command 'clear lwapp private-config' UNLESS the default user/pass HAS been changed. Once those parameters are changed, you'll have the ability to run that command. However, in this case it isn't necessary. Just use the 'lwapp ap controller ip address x.x.x.x' command and you should be all set. Never hurts to use the reset button too. Just hold it down for 1-2 sec. while powering on the AP and let go when you see the LED go amber.

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

I'm confused. I need to change the username/pwd, but not sure how to do that.

Hall of Fame Super Gold

Re: Option 43 vs. DNS Resolution

You'll get this error message when you are running the IOS that the WLC has dished out. Boot into the RCV firmware and then you can run the command.

New Member

Re: Option 43 vs. DNS Resolution

Laxcis -

If I wasn't clear in my previous post, if you are either telnetted or consoled into the controller, your debug should show up immediately in your terminal emulation software (i.e. HyperTerminal/PuTTY/CRT/etc.). If you are NOT seeing any debug traffic, then your APs are not able to reach the controller and thus you are not seeing any traffic. A few things that will cause this immediately are these:

1. Firewall blocking ports UDP 12222/12223 (used to send LWAPP packets to/from controller)

2. Incorrect tagging on the interface directly connected to the controller. Remember, the controller ports are hard coded 1 gigabit, full duplex, dot1q trunks.

3. Incorrect port configuration on the switch. Your switchport that connects to your controller MUST be 1 gigabit, full duplex, dot1q trunk.

4. You are not allowing all VLANs across your trunk link (only applies if you chose not to put your controller management IP address on your native VLAN).

Regards,

Scott

New Member

Re: Option 43 vs. DNS Resolution

Thanks. Would you be able to tell me how to hard code my AP with the controller I want? That would be terrific. It's a 1242.

I do have another question relating to Option 43 vs DNS. What happens if you have both? I'm thinking this may be my problem, and why my AP's are going to the wrong controller. In DNS, we have the entry for the one wireless controller (CISCO-LWAPP-CONTROLLER), but not for the other WLC. Instead, for that we have option 43. I guess what I am wondering is, how do you do multiple DNS entries for more than 1 WLC? Doesn't the name in DNS need to be CISCO-LWAPP-CONTROLLER? Or should that be the name of the controller?

New Member

Re: Option 43 vs. DNS Resolution

Hi Scott,

After moving the AP into your LAB, where the WLC 4402 is connected, did the AP was connected into the same segment where the WLC is sitting?

I think that it is obvious that the AP will keep his controller IP (if it was retained through DNS or DHCP) because of the redundancy issue.

New Member

Re: Option 43 vs. DNS Resolution

Talmadari -

Whether the AP is on the same subnet or not really just tells me which discovery methods the AP can/will use. Cisco hasn't recommended L2 in quite a while, and my particular configuration is L3. The APs are on a different subnet. Therefore, it should have gotten a controller address from either DNS or Option 43, or possibly both. Prior to adding Option 43, it should have picked up the address for the 4402 from the DNS server in the domain since it is configured to respond. In addition, debug on the AP indicated that it resolved CISCO-LWAPP-CONTROLLER successfully. So I'm not really sure what your point is. Whether it was on the same subnet or not, the LWAPP join process should have shown the new controller IP address for my lab controller. I agree with you that the AP properly stored the previous controller addresses, but it should have at least learned the new ones via the standard LWAPP join process and then decided 'I already have a primary configured so I'm going to use that.'

Regards,

Scott

529
Views
9
Helpful
37
Replies
CreatePlease to create content