Wednesday, 5 September 2012

# 3 Installing DHCP3-Server

Installing DHCP3-Server
Welcome back! Are Backtrack VM now needs a DHCP3-Server so when we are doing wireless attacks are victems that connect to us will be given an IP address. In this tutorial i will first show you how to install the DHCP3-Server and secodly i will show you how to configure it.
Installing the DHCP3-Server
This should be very easy BUT!!! When you try to install DHCP3-Server it trows an error because one of it dependancies does not match what we have installed. So now we have to downgrade its dependancy show below....
First lets open a terminal and type in the bold code below:
apt-get install synaptic
Now when thats installed, start synaptic by entering the bold text below into the terminal:
Once synaptic starts it will update and once thats done search for dhcp3-common

You should see dhcp3-common on top of the list, highlight it and goto the toolbar at the top of the window and select Package > Force Version (like below)

Now in the drop-down menu, select “3.1.3-2ubuntu3.2 (stable)” and click force version and then “Mark”.

Press the “Apply” button with the green checkmark. Double-check to make sure you’re doing the right thing in the pop-up window. You will be removing dhcp3-common, dhcp3-gtk, dhcp3-daemon, and also Wicd.

Wait for Synaptic to do it’s thing and then close it. (Don’t reboot or anything like that!)

Since Wicd is important for starting and stopping networking with a GUI, reopen the terminal window and type in the bold text below

apt-get install wicd

(note: if you get an error installing WICD like i did then pause you VM and Resume it because that worked for me)

Now we can finally install DHCP3-Server by entering into the terminal the text in bold below:

apt-get install dhcp3-server

That should be installed now!

Configure the DHCP3-Server

Now we can configure the DHCP3-Server. This is easy!

On the desktop select Places > Computer > File System

We should now be able to see the root file system and in here we need to find the dhcp3 server config file so select etc > dhcp3

You should now see the file dhcpd.conf

Now open it and delete all its contents and replace with the text in bold below

default-lease-time 600;
 max-lease-time 7200;

option subnet-mask;
 option broadcast-address;
 option routers;
 option domain-name-servers,;
 option domain-name "";

subnet netmask {

(note:edit the IP's to match your network)

Save this and close everything until your back at the desktop.

Now lets test if it working by opening a terminal and entering the text in bold below

/etc/init.d/dhcp3-server start

If you get the text in bold below then everything went ok!

* Starting DHCP server dhcpd3                                           [ OK ]


  1. having a hard time with the "edit the ip's to match your network" part

  2. there is an ip range on every network .. like before starting this stuff do write this on your console
    #sudo nmap
    and you will see all the clients there . Observer there ip address. Fill the range based on no. of user's who use that network.

  3. getting this error message after /etc/init.d/dhcp3-server: No such file or director

  4. also this when i installed dhcp3 server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    dhcp3-server: Depends: dhcp3-common (= 3.1.3-2ubuntu3.2) but 3.1.3-2ubuntu3.3 is to be installed
    E: Broken packages

    1. i have a problem when downloading it says failed to fetch

  5. hi i got starting dhcp3 server message after that i got check syslog for diagnostics........pls help me.......