取消
显示结果 
搜索替代 
您的意思是: 
cancel
1521
查看次数
0
有帮助
4
回复

option43、dns、手动设置这几种方式发现WLC的优先级

id404
Spotlight
Spotlight

AP发现WLC有以下几种方式

Layer 3 Broadcast

Previously known WLCs

DHCP Option 43

Resolve DNS hostname (CISCO-CAPWAP-CONTROLLER.localdomain)

Manually configured controllers

这几种方式是优先级是怎样的?有没有相关的文档说明?

4 条回复4

WLC Discovery method priority

https://community.cisco.com/t5/wireless/wlc-discovery-method-priority/td-p/3037513

Here are the different methods AP can used for this. The order of these are not important

Overview of the WLC Discovery and Join Process

In a Cisco Unified Wireless network, the LAPs must first discover and join a WLC before they can service wireless clients.

However, this presents a question: how did the LAPs find the management IP address of the controller when it is on a different subnet?

If you do not tell the LAP where the controller is via DHCP option 43, Domain Name System (DNS) resolution of Cisco-capwap-controller.local_domain, or statically configure it, the LAP does not know where in the network to find the management interface of the controller.

In addition to these methods, the LAP does automatically look on the local subnet for controllers with a 255.255.255.255 local broadcast. Also, the LAP remembers the management IP address of any controller it joins across reboots. Therefore, if you put the LAP first on the local subnet of the management interface, it finds the controller management interface and remembers the address. This is called priming. This does not help find the controller if you replace a LAP later on. Therefore, Cisco recommends use of the DHCP option 43 or DNS methods.

The LAPs always connect to the management interface address of the controller first with a discovery request. The controller then tells the LAP the Layer 3 AP-manager interface (which can also be the management by default) IP address so the LAP can send a join request to the AP-manager interface next.

The AP goes through this process on startup:

  1. The LAP boots and DHCPs an IP address if it was not previously assigned a static IP address.
  2. 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:
    1. DHCP option 43 (good for global companies where offices and controllers are on different continents).
    2. DNS entry for 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.
    3. Management IP addresses of controllers the LAP remembers previously.
    4. A Layer 3 broadcast on the subnet.
    5. Statically configured information.
    6. Controllers present in the mobility group of the WLC the AP last joined.

    From this list, the easiest method to use for deployment is to have the LAPs on the same subnet as the management interface of the controller and allow the LAPs Layer 3 broadcast to find the controller. This method must be used for companies that have a small network and do not own a local DNS server.

    The next easiest method of deployment is to use a DNS entry with DHCP. You can have multiple entries of the same DNS name. This allows the LAP to discover multiple controllers. This method must be used by companies that have all of their controllers in a single location and own a local DNS server. Or, if the company has multiple DNS suffixes and the controllers are segregated by suffix.

    DHCP option 43 is used by large companies to localize the information by the DHCP. This method is used by large enterprises that have a single DNS suffix. For example, Cisco owns buildings in Europe, Australia, and the United States. In order to ensure that the LAPs only join controllers locally, Cisco cannot use a DNS entry and must use DHCP option 43 information to tell the LAPs what the management IP address of their local controller is.

    Finally, static configuration is used for a network that does not have a DHCP server. You can statically configure the information necessary to join a controller by the console port and the APs CLI. For information on how to statically configure controller information by use of the AP CLI, use this command:

    AP#capwap ap primary-base <WLCName> <WLCIP>
    For information on how to configure DHCP option 43 on a DHCP server, refer to the DHCP option 43 configuration example
  3. Send a discovery request to every controller on the list and wait for the controller discovery reply which contains the system name, AP-manager IP addresses, the number of APs already attached to each AP-manager interface, and overall excess capacity for the controller.
  4. Look at the controller list and send a join request to a controller in this order (only if the AP received a discovery reply from it):
    1. Primary Controller system name (previously configured on LAP).
    2. Secondary Controller system name (previously configured on LAP).
    3. Tertiary Controller system name (previously configured on LAP).
    4. Primary controller (if the LAP has not been previously configured with any Primary, Secondary, or Tertiary controller names. Used to always know which controller is a brand new LAPs join).
    5. If none of the previous conditions are seen, load balance across controllers by use of the excess capacity value in the discovery response.

      If two controllers have the same excess capacity, then send the join request to the first controller that responded to the discovery request with a discovery response. If a single controller has multiple AP-managers on multiple interfaces, choose the AP-manager interface with the least number of APs.

      The controller responds to all discovery requests without a certificate chec or AP credentials. However, join requests must have a valid certificate to get a join response from the controller. If the LAP does not receive a join response from its choice, the LAP tries the next controller in the list, unless the controller is a configured controller (Primary/Secondary/Tertiary).

  5. When it receives the join reply, the AP checks to make sure it has the same image as that of the controller. If not, the AP downloads the image from the controller and reboots to load the new image and starts the process all over again from Step 1.
  6. If it has the same software image, it asks for the configuration from the controller and moves into the registered state on the controller.

    After you download the configuration, the AP can reload again to apply the new configuration. Therefore, an extra reload can occur and is a normal behavior.

https://www.cisco.com/c/en/us/support/docs/wireless/5500-series-wireless-controllers/119286-lap-notjoin-wlc-tshoot.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

If my LAP has primary-base controller set, also DHCP option 43 is set. Which one will it connect to after reboot: primary-base or the that’s been sent by DHCP ?

 

ilay
VIP
VIP

已经在用的ap,previously know WLCs要优先于其他的方式(指的是ap join之后再ha中配置wlc的地址信息,见下图)

ap_ha1.png

其他的没有查到官方给的优先级排序,只是给了一些不同场景下的最简单的使用方式。(见参考链接)

如果是新ap,静态配置地址,且仅配置了ip地址网关信息,那么应该是L3 broadcast优先,如果静态配置了wlc的信息则静态配置优先。静态配置是指capwap ap  primary-base WLC_NAME WLC-IP的配置,并非capwap ap controller ip address x.x.x.x的配置方式

如果新ap选择自动获取地址,放在 同时配置了option43,dns,且wlc在同一广播域里面的环境里面,个人感觉还是静态优先,其次option43/dns最后L3 broadcast,(之前尝试过在dhcp的环境里面静态指wlc地址,可以生效,但是需要预先配置上wlc的信息,不然等配置完的时候已经通过其他的方式获取到wlc的信息了。option43和dns的优先级应该是option43优先,毕竟是直接在拿地址的时候就获取到的option字段,肯定会优先dns解析的,L3的broadcast没有让这个环节出现过=_=)

实际环境中应该不会有上面那么极端的情况出现,倾向于使用option43和dns来配置,当然静态指定是最稳妥的,但初期工作量会较大。

参考链接:

https://community.cisco.com/t5/wireless-mobility-knowledge-base/joining-process-of-an-cisco-access-point/ta-p/3149279

https://www.cisco.com/c/en/us/support/docs/wireless/5500-series-wireless-controllers/119286-lap-notjoin-wlc-tshoot.html

 

sufee
Level 1
Level 1

认真看看,学习一下。

快捷链接