cancel
Showing results for 
Search instead for 
Did you mean: 

AP Discovery - How to configure DHCP option 43 to discover the controller?

Orlando_Elias
RUCKUS Team Member

The DHCP option 43 is one of many methods for the RUCKUS AP to discover its controller.

This option is configured in the DHCP server and must be masked. Also, the vendor code and the length of the IP address must be specified in HEX.

RUCKUS vendor code:

- 06 for SmartZone

- 03 for Zone Director

Using this website you will quickly mask the IP address from IPV4 to dnsmasq values.  

For example, let's mask the IP address 192.168.0.200 using the website: the final value to enter in your DHCP server is "060d3139322e3136382e302e323030"

Orlando_Elias_1-1692061698341.png

 

How did they get to such a result? 

  1. Divide the IP Address: Start by splitting the IP address into its four individual parts: A.B.C.D.

    1. 192
    2. 168
    3. 0
    4. 200
  2. Mask the decimal values: For each part, convert the decimal value to its corresponding hexadecimal representation. For instance:

    • Decimal 1 becomes "31"
    • Decimal 9 becomes "39"
    • Decimal 2 becomes "32" ...
  3. Add Separators: Place "2e" (ASCII value for dot) between each pair of translated hex values.

  4. Include Vendor Code and Length: Prefix the vendor code at the beginning (e.g., "06" for RUCKUS). Add the IP address length in bytes (e.g., "0d" for 13 bytes).

    Note: The length is 13 bytes since each pair of characters equals one byte.

  5. IP Address Translation: The IP address "192.168.0.200" transforms into the hexadecimal string "3139322e3136382e302e323030".

  6. Combining Elements: Combine all the translated parts to form the final hexadecimal representation.

Example for the IP address "192.168.0.200":

  • Translated octets: "31", "39", "32", "2e", "31", "36", "38", "2e", "30", "2e", "32", "30", "30"
  • Vendor code: "06"
  • Length: "0d"
  • Combined: "060d3139322e3136382e302e323030"

Visit this post to learn other ways to provision RUCKUS APs with the IP address of their controllers.

With regards,
--
Orlando Elias
Technical Support
7 REPLIES 7

Intralink
New Contributor

Can you do 2 IP Addresses for redundant controllers when using DHCP Option 43?

 

Dilshad_Zafar
RUCKUS Team Member

Hi @Intralink , Yes you can. However, the number of Controller IPs you can include in this option has a restriction. For example, some DHCP server vendors do not allow this value to exceed 255 bytes.

Regards,

Md. Dilshad Zafar | Sr TSE | RCWA | RASZA | RACPA | RUCKUS Networks

Thanks for the quick response!

 

Currently I only have one controller IP Address in the DHCP Option 43 hex code in my Sonicwall.  I want to add the additional IP address for the second controller.  The IPs for the controllers are (192.168.99.10  & 192.168.99.11)  Do I need to do anything to separate the IPs in the hex code?   Do I need to add 0x20 for a space between the 2 IP Addresses, or can I just leave it like I have it below?  Is there a way to test if an AP knows about both controllers?  I can ping both from an AP.

So this? 0x31; 0x39; 0x32; 0x2e; 0x31; 0x36; 0x38; 0x2e; 0x39; 0x39; 0x2e; 0x31; 0x30; 0x31; 0x39; 0x32; 0x2e; 0x31; 0x36; 0x38; 0x2e; 0x39; 0x39; 0x2e; 0x31; 0x31

Or this? 0x31; 0x39; 0x32; 0x2e; 0x31; 0x36; 0x38; 0x2e; 0x39; 0x39; 0x2e; 0x31; 0x30; 0x20; 0x31; 0x39; 0x32; 0x2e; 0x31; 0x36; 0x38; 0x2e; 0x39; 0x39; 0x2e; 0x31; 0x31

All of the APs are on the same subnet.

Also, the licenses from the “primary” controller will sync over to the “secondary” redundant controller when I configure the controller settings for smart redundancy, correct?

Hi @Intralink ,

This would vary from vendor to vendor. However, for Sonicwall DHCP option 43, we have a KB https://support.ruckuswireless.com/articles/000003431 that you can refer to. This doc says that Option Value (<IP1>, <IP2> etc.) should be a string converted to hex in "semicolon" separated characters, and not spaces. For more information, I would recommend referring to the specific vendor's user guide.

Once implemented, it can be tested by running AP CLI command "get scg". This would give you the IPs learnt using option 43 next to section "DHCP Option 43".

As for your question on licensing, the licenses of both active and standby are pooled together when you enable SmartRedundancy on ZD. More details on it's licensing concept can be found here - https://support.ruckuswireless.com/articles/000004832

Regards,

Md. Dilshad Zafar | Sr TSE | RCWA | RASZA | RACPA | RUCKUS Networks