01-26-2024 12:35 AM
Hello all,
I have a question regarding WLC discovery.
Now I've read the Chapter for that in the ENCOR OCG (2), and the order is as follows:
Step 1. The AP broadcasts a CAPWAP Discovery Request on its local wired subnet.
Step 2. An AP can be “primed” with up to three controllers—a primary, a second-
ary, and a tertiary.
Step 3. The DHCP server that supplies the AP with an IP address can also send DHCP
option 43 to suggest a list of WLC addresses.
Step 4. The AP attempts to resolve the name CISCO-CAPWAP-CONTROLLER.
localdomain with a DNS request
Step 5. If none of the steps have been successful, the AP resets itself and starts the
discovery process all over again.
So my thought process was, that this is the actual order in which the AP attempts to discover a WLC.
However in the following whitepaper: https://www.cisco.com/c/en/us/support/docs/wireless/5500-series-wireless-controllers/119286-lap-notjoin-wlc-tshoot.html
The order is this:
The AP goes through this process on startup:
So therefore I'm a bit confused what I should think about that. Since I would go with the official Whitepaper, but I'm not sure. Can someone verify and help me with this?
Thanks in advance!
Kind regards,
Mirko
01-26-2024 02:02 AM
read this carefully
The LAP sends discovery requests to controllers through the various discovery algorithms and builds a controller list. Essentially, the LAP learns as many management interface addresses for the controller list as possible via:
this does not describe the priority, it describes what items are contained in the list
after the full list is built then a controller is selected through preference rules
01-26-2024 07:40 AM
setup dhcp option 43 in your DHCP server. Or better yet, but the AP on the same vlan as the WLC and it will find it through a broadcast packet. Once it has discovered and join, move it to another network if needed.
but to directly answer your question, i have never had an issue (and do a packet capture to check).
The AP goes through this process on startup:
cisco-capwap-controller
(good for local businesses - can also be used to find where brand new APs join) If you use CAPWAP, make sure there is a DNS entry for cisco-capwap-controller
.01-26-2024 07:43 AM
what model and code is the Access point?
Also, if you don't have a static IP, the first step that happens is DHCP, so option 43 would be the first step.
01-27-2024 06:25 AM - edited 02-11-2024 04:20 PM
Option 43 is the recommended method.
Setting the static Primary/Secondary/Tertiary HA config on the AP will allow it to deterministically join them in that order otherwise it will simply join the first one it gets a reply from. You will always see it sending discovery requests to every WLC it knows about too, including any WLC it has joined before or learned about from WLC mobility (basically it checks that list it compiled to see which ones it could join if needed).
Also note a fact often missed by people who like to try using static IP addresses for their APs instead of DHCP. If, for any reason, an AP with static IP is not able to join a WLC it will automatically fall-back to using DHCP (override the static IP config) as a method of recovery to try to find a working WLC. So it's best to just design for DHCP with option 43.
02-08-2024 02:10 AM
Hello @Rich R,
thanks for the reply. Tough my problem is, that I expect questions on exams like "If the AP couldn't discover a WLC via DHCP option 43 or via DNS, what is the next method which it is going to use". So I assume there has to be an order.
And because those two sources mentioning different orders, I'm not sure which order to learn.
Kind regards,
Mirko
02-08-2024 02:44 AM
when I read this order first time I also confuse
but I will clear it to you
the AP will collect WLC IP from all discover method, the order here is which one of discover come first and so on
the order not meaning that if AP detect WLC via DHCP then it stop and not check the WLC via DNS.
so the AP collect all WLC IP and select one of them.
if the WLC not in same subnet of AP then the first discovery method have no WLC IP
if the DHCP op43 not correct or not send by DHCP then no WLC IP
if the DNS can not resolve the WLC IP then no WLC IP
here the AP will use last WLC use or use primary/secondary WLC IP save in runing ( also here the cisco have some note to prefer the WLC primary/secondary than the WLC learn from DHCP/DNS)
MHM
02-08-2024 02:57 AM - edited 02-08-2024 03:23 AM
separate the discovery process from the controller selection
maybe the document below answers your question sufficiently
I read it as primed controllers first,
next any of the discovered controllers with the most "free capacity" to service access points
when multiple controllers with equal capacity, then the first controller that has responded.
Understand the AP Join Process with the Catalyst 9800 WLC - Cisco
Note: The WLC Discovery methods listed do not have any precedence order.
Once the AP has received a Discovery Response from any WLC using any of the WLC discovery methods, it selects one controller to join with this criteria:
and this document
Joining Process of an Cisco Access Point - Cisco Community
mentions you have some influence on the selection process (where the default-logic is described as above)
all this results in that broadcast on the local network can be preferred over configuring DHCP-43 and DNS,
because this always results in selecting a controller on the same lan/subnet
depending on your own demands can result in priming the controller address as the preferred method.
this way YOU are in control,
the other discovery methods are still executed, to build the list of candidates to use when ALL primed controllers do not respond
02-11-2024 04:18 PM
If you want a definitive answer for the preferred order then you'll have to test it yourself and observe but you can't be sure it will always be the same on every AP type and software version.
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