Adding A DHCP Server To CIITIX-WiFi

OS: Linux 2.6.26-2-686
Distribution: CIITIX-WiFi (1.1)
Date: 26/01/2011
Author: yasir

CIITIX-WiFi is a turnkey solution to your WiFi hotspot needs. Built onto the rock solid stable debian linux, setting up a secure (TTLS) WiFi hotspot is just a minute away. This Howto will show you the step by step configuration of setting up a DHCP Server within CIITIX-WiFi. It is useful in the sense that it will act as a standalone solution for both CIITIX-WiFi and DHCP Server on a single machine i.e no separate machine needed for DHCP.

Download CIITIX-WiFi image from here.

The very first thing to do is to add these two lines...

deb lenny main
deb lenny main

in the sources.list file by using the command:

# vi /etc/apt/source-list

You can use other mirror sources as well, which ever are geographically close to your location.

Issue the following command after making changes in the sources.list file:

# aptitude update -y

Install DHCP Server. The command used for installation is:

# aptitude install dhcp3-server -y

You must define the network interface which your dhcp is going to use. Use the command:

# vi /etc/default/dhcp3-server

Set the INTERFACES to either eth0 or eth1 depending upon the interface you use.


Now you have to define the subnet you use, its range, default gateway and so many other options in the dhcpd.conf file by using the command:

# vi /etc/dhcp3/dhcpd.conf

ddns-update-style interim;
subnet netmask
option routers   ; # Gateway Address
option subnet-mask;
option domain-name         "";
option domain-name-servers; # DNS
option netbios-name-servers; # WINS
range dynamic-bootp;  # range for clients.
default-lease-time  43200;
max-lease-time      86400;

Finally you need to start your dhcp server by using the command:

# /etc/init.d/dhcp3-server start

That’s it…now you do not have to use a separate machine for your dhcp server.

It is assumed that your CIITIX-WiFi server itself has a static ip configured on its interfaces. Example is given below.

# cat /etc/network/interfaces

auto eth0
iface eth0 inet static

Cheerz !!!

Share this page:

Suggested articles

2 Comment(s)

Add comment



good work... Keep it up..


From: Aamir

I was wondering around for AAA server a got this link, very happed thumbs up for the guys. Great Work....Really appreciating...Keep it up and lets introduce new things to the cyber world.