Setting up DHCP server on a Ubuntu Linux machine to provide option43 to Ruckus APs

Summary

This article walks you through installation of DHCP server and configuring it to provide option43 setting to Ruckus APs. Once the APs retrieve a DHCP IP with option43 string they will discover ZD or SCG for management.

Question

How do I setup DHCP service on a Linux machine to provide option43 to Ruckus APs?

Customer Environment

ZD or SCG managed APs, Linux DHCP server

Resolution

Following steps explain the process of setting up DHCP server on a Linux machine and configuring DHCP service to provide DHCP IPs with option43 string to Ruckus APs. Here Ubuntu is used as a sample Linux OS.

1. Install ISC DHCP server on a Linux machine:
$ sudo apt-get install isc-dhcp-server
 
2. Edit interfaces for dhcpd to listen on:
$ sudo vi /etc/default/isc-dhcp-server
(eth2 interface for the .12 subnet mentioned below)
 
3. Edit the dhcp daemon config:
$ sudo vi /etc/dhcp/dhcpd.conf
 
                option domain-name "ruckus.jp";
                option domain-name-servers 192.168.150.1, 8.8.8.8;
 
                default-lease-time 900;
 
                option space RKUS;
                option RKUS.fm-address code 1 = text;
                option RKUS.zd-address code 3 = text;
                option RKUS.scg-address code 6 = text;
 
                subnet 192.168.12.0 netmask 255.255.255.0 {
                                                range  192.168.12.100 192.168.12.199;
                                                option routers 192.168.12.1;
                                                option subnet-mask 255.255.255.0;
                                                option broadcast-address 192.168.12.255;
                                                option ntp-servers 192.168.11.22;
                                                class "Ruckus AP" {
                                                match if option vendor-class-identifier = "Ruckus CPE";
                                                option vendor-class-identifier "Ruckus CPE";
                                                default-lease-time 86400;
                                                                                vendor-option-space RKUS;
                                                                                option RKUS.fm-address "192.168.150.13";
                                                                                option RKUS.zd-address "192.168.11.12";
                                                                                option RKUS.scg-address "192.168.11.200";
                                                }
                }
 

  
Please make sure the SCG IP address mentioned above is the SCG control interface IP.

4. Start dhcpd:
$ sudo /etc/init.d/isc-dhcp-server start 
 
5. Verify operation by looking at:
$ sudo tail -n 100 
(you should see something like)
                      Feb 19 10:50:51 ubuntu dhcpd: DHCPREQUEST for 192.168.1.163 from f0:a2:25:da:b7:40 (android-64dae312c37f4191) via eth0
                Feb 19 10:50:51 ubuntu dhcpd: DHCPACK on 192.168.1.163 to f0:a2:25:da:b7:40 (android-64dae312c37f4191) via eth0
                Feb 19 10:52:57 ubuntu dhcpd: DHCPREQUEST for 192.168.1.151 from 58:93:96:14:82:e0 via eth0
                Feb 19 10:52:57 ubuntu dhcpd: DHCPACK on 192.168.1.151 to 58:93:96:14:82:e0 via eth0
                Feb 19 10:55:40 ubuntu dhcpd: DHCPREQUEST for 192.168.1.163 from f0:a2:25:da:b7:40 (android-64dae312c37f4191) via eth0
                Feb 19 10:55:40 ubuntu dhcpd: DHCPACK on 192.168.1.163 to f0:a2:25:da:b7:40 (android-64dae312c37f4191) via eth0
 

(connect AP to the network and verify the IP address served out)
$ cat /var/lib/dhcp/dhcpd.leases
                .
                . etc etc
                .
                lease 192.168.1.163 {
                  starts 2 2013/02/19 01:55:40;
                  ends 2 2013/02/19 02:05:40;
                  cltt 2 2013/02/19 01:55:40;
                  binding state active;
                  next binding state free;
                  hardware ethernet f0:a2:25:da:b7:40;
                  client-hostname "android-64dae312c37f4191";
                }

 
6. Lastly check the AP side:
 
                rkscli: get director
                ------ ZoneDirector Info ------
                Primary Controller   : n/a
                Secondary Controller : n/a
                DHCP Opt43 Code      : 3
 
                The information of the most recent Zone Director:
                  [1] 192.168.11.12
 
                  AP is under management of ZoneDirector: 192.168.11.12 / :: / c0:8a:de:3e:93:96,
                  Currently AP is in state: RUN
 

(and for the AP connected to an SCG)
 
                rkscli: get scg
 
                ------ SCG Information ------
                SCG Service is enabled.
                AP is managed by SCG.
 
                Server List: 192.168.11.200
                DHCP Opt43 Code: 6
                Server List from DHCP Opt43: 192.168.11.200
                SCG default URL: RuckusController
                SCG config|heartbeat intervals: 30|30
                SCG gwloss|serverloss timeouts: 0|0
                -----------------------------
                OK

Article Number:
000002358

Updated:
October 13, 2022 04:18 PM (over 1 year ago)

Tags:
Configuration, Installation, ZoneDirector, FlexMaster UMM, SmartCell Gateway

Votes:
2

This article is:
helpful
not helpful

Working...Please wait

This is here to prevent you from accidentally submitting twice.

The page will automatically refresh.