Adding A DHCP Server To CIITIX-WiFi

Want to support HowtoForge? Become a subscriber!
 
Submitted by rafique.yasir (Contact Author) (Forums) on Wed, 2011-02-09 10:24. :: Linux

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 http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ 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.

INTERFACES="eth0"

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 172.16.1.0 netmask 255.255.255.0
{
option routers             172.16.1.2; # Gateway Address
option subnet-mask         255.255.255.0;
option domain-name         "yasir.org";
option domain-name-servers 172.16.1.3; # DNS
option netbios-name-servers 172.16.1.5; # WINS
range dynamic-bootp 172.16.1.10 172.16.1.254;  # 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
        address 172.16.1.7
        netmask 255.255.255.0
        gateway 172.16.1.2

Cheerz !!!


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by kashifazizawan (registered user) on Fri, 2011-02-18 06:06.

good work... Keep it up..

 

Submitted by Aamir (not registered) on Wed, 2011-03-16 12:27.

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.

 Wassalam