DHCP Server Setup

From Linuxhelp Wiki

pasdrontarel play games online free massachusetts vacation naturism europe sin city video game hot quotes u2 elevation anal free sample video url daddyyankee rc racing motor all star dunks video electronic commerce unique leather products licenceplates page rahul bhagat robocop movie ms project license default count on me yalom group process iowa turn on 2 hawk technic tony underground url tractor salvage resident evil 4 music custom web sites design iowa city rental housing unlocking motorola v220 4 sale signs western high school davie muir movie anal big dildo gallery movie woman net casino video poker snatch block oss audio converter 5.6.0.3 crack http salt lake city realtor australia adipex girls butt hole malaysia art and culture drug identification public relations baltimore jump long video crip walking gas power scooters over flowing antonio sabato jr movies 600 ringtone treo free adware removal hardcore cartoon porn sable holiday bicycle tours free webcam sex suck huge horse cocks riviera used yacht skeet ulrich movies lachey left nick video whats appscan 5.0 license jeeves for kids pdf factory crack terraserver tennessee camping caldwell community college screaming movie clips sexual sounds many man wish death music video 22 inch rims with tires aicha video gellieman index end of the innocent lyrics aaliyah again try video limousine washington dc peter schmeichel video clips lisa lawer movie adderall and seizures amp bizarre land movie pornstarfinder rules cyclopedia c155 free motorola ringtone tracfone auto paint protectant sitemap illegal pictures nickelback mp3 apache gunship videos tremec singapore movies winchester model 12 page a league of their own torrent smart movie player for nokia 9210i keannu reeves new movie la mara photo salvatrucha http central ohio homes for sale metallica page turn video russian photography http freebigmovies tina cousins forever couscous recipes big tit hardcore porn consumer lists lcd tv stand wood http syngenta ford five hundred page movie theatres in fayetteville nc axmaster serial pussy spank movie instinct to kill exercise bikes ratings key logger buddy 8 serial top 44frost real estate lost in translation beer goggles smart popup blocker site walker texas ranger mustang wreck video kid crafts call center customer service practices computer forensic certification abc lyrics look of love dragonballzgt anas barb door to door everything is illuminated movie trailer theatre tickets london musicals rhino 3.0 evaluation crack adipex generic only the most beautiful woman in the worlds lyric for i need love by ll cool j norse mythology santana shaman track listing robot dance video clips unique groomsmen gifts legend log home photocard driving license lorissa mccomas video clips judicial power and canadian democracy along american lyric move reject cingularwireless mr2 video clips adult porn movie pci express video capture card racing the monsoon movie ne yo stay with me video code leaf plant transpiration ilife 5 torrent altace predator videos military severe bondage sex small digital camera video movie quotes friday after next moonlight bakery torrent advanced audio cd ripper serial kappa sigma inuyasha episode video clip movie annapolis maryland mel gipson movies noadaware serial california impressionist powercinema 3.0 crack birkenstock teens models exercise general surgeon mens fashions 2005 hp ink cartridge anal double interracial young russian woman adult personals toronto airjack reason crack no cd return of the living dead torrent patching plaster cracks arh license plate recognition serial interface printer rar password cracker 4.12 keygen spanked video clips allen code gary video home package dependencies angel of mine fuck mechine movies msfcu ontario airport parking say it ain t so video used poker tables online ortho tricyclen the artistry group leg gallery inspiration school human resource jobs msproject 2003 serial briana banks lesbian nude movie of kim bassinger electrical stimulation imitrex prescription avi to dvd serial number al quran video xenadrine ephedra corporate gift baskets training material and writing homes for sale central ohio clips of debbie does dallas bunny ranch link ououric

Author:Joey
Created On:December 3rd, 2003
Updated On:Unknown

DHCP (Dynamic Host Configuration Protocol) is an Internet protocol for automating the configuration of computers that use TCP/IP. DHCP can be used to automatically assign IP addresses, to deliver TCP/IP stack configuration parameters such as the subnet mask and default router, and to provide other configuration information such as the addresses for printer, time and news servers.

This simple guide will cover the installation and configuration of ISC's DHCP Client for a local network. Their DHCP client can be downloaded at ftp://ftp.isc.org/isc/dhcp/

Contents

Installation

Once you've downloaded it, move the file to your favourite location (/usr/local/src for this guide) and unpack it by running the following command:

tar -zxvf dhcp-*.tar.gz

This will create a directory called dhcp-3.0pl2 (the version number may vary). Enter into this directory and run the following command as root:

./configure

If there are no errors you may run the following command (as root):

make

If there are no errors you may run the following command (as root):

make install

If you come across any errors when running the above commands you are likely missing a library or file on your system. Your best bet is to visit Google and perform a search on the error message. This should give you somewhat of an idea of what is missing and how to correct it. You might also want to have a look at the ISC DCHP Client Readme which can be found at http://www.isc.org/products/DHCP/dhcpv3-README.html.

Once DHCP has finished compiling you must copy the dhcpd.conf file to your /etc directory. You can find a sample dhcpd.conf file in the server/ directory of the DHCP package you downloaded. I've also included a sample dhcpd.conf file below.

Sample dhcpd.conf file:

# Sample dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

ddns-update-style ad-hoc;

# option definitions common to all supported networks...
option domain-name "linuxhelp.ca";

# Your name servers. You can normally find these in 
# your /etc/resolv.conf file. These will be distributed to all DHCP 
# clients.
option domain-name-servers 10.1.1.1, 65.39.196.215, 65.39.192.130;

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

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# Configuration for an internal subnet.
subnet 10.1.1.0 netmask 255.255.255.0 {
   range 10.1.1.2 10.1.1.25;
   option domain-name-servers 10.1.1.1, 65.39.196.215, 65.39.192.130;
   option domain-name "linuxhelp.ca";
   option routers 10.1.1.1;
   option broadcast-address 10.1.1.255;
   default-lease-time 600;
   max-lease-time 7200;
}


Static IP's & MAC Addresses

If you would like to assign a static IP to a particular machine on your network you'll need to know the MAC address of the ethernet card on that particular machine. To find the MAC address in Linux type:

ifconfig

You should then see something similar to HWaddr 00:C0:9E:05:BD:D6. The MAC address for that ethernet card would be 00:C0:9E:05:BD:D6.

If you are running Windows XP you can find out the MAC address by clicking on "Start → Programs → Accessories → Command Prompt". At the prompt type:

ipconfig /all 

You should then see "Physical Address" and the MAC address listed. Note: Windows might list the MAC address with hyphens (-) instead of colons (:). If so, just replace them with colons when entering them into your dhcpd.conf file. (e.g.: change 00-45-40-10-FE-12 to 00:45:40:10:FE:12)

Once you've found the MAC address you can add the following entry to the bottom your dhcpd.conf file:

# Assign a static IP to atlantis.linuxhelp.ca
host atlantis {
   hardware ethernet 00:45:40:10:FE:12;
   fixed-address 10.1.1.20;
}

Running DHCP

Once you've edited the config file to suit your network IP address ranges etc, you'll want to create a file called dhcpd.leases in your /var/state/dhcp/ directory. To do so, run the following command as root:

touch /var/state/dhcp/dhcpd.leases

If you receive an error that the file already exists, simply ignore it and continue. Once the file has been created you can start up the DHCP server by running the following command as root:

/usr/sbin/dhcpd

Note: By default, DHCP runs on the first ethernet device on your machine (generally eth0). If you would like to have DHCP run on a different device you must specify it when you start the DHCP server. If you wanted DHCP to operate on eth1 you would start up the DHCP server by running:

/usr/sbin/dhcpd eth1

If there are any errors with your dhcpd.conf file, dhcpd will not start and you should be presented with an error message indicating what is wrong. If you cannot figure out what is causing the error message I suggest you visit Google and perform a search on it.

If everything started up fine you should see something like this:

# /usr/sbin/dhcpd eth1
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:40:44:16:2e:e8/10.1.1.0/24
Sending on   LPF/eth1/00:40:44:16:2e:e8/10.1.1.0/24
Sending on   Socket/fallback/fallback-net

Now simply set the machines on your local network to obtain their IP addresses via DHCP and you're all set.

Mailing Lists

ISC runs a few mailing lists with regards to their DHCP distribution. You should really consider signing up to the dhcp-announce list so you can be made aware of any software updates, security vulnerabilities, etc., that come up in the future. You can sign up at http://www.isc.org/services/public/lists/dhcp-lists.html.