Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-08-2006, 02:43 PM   #1
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
Help with getting a simple dhcp server working

I am running gentoo
this is my /etc/dhcp/dhcp.conf file

log-facility local7;
ddns-update-style none;
use-host-decl-names on;

subnet netmask {
        option domain-name "cluster";
        option routers;

        host node01 {
                # MAC address of network card on node 01
                hardware ethernet 00:D0:B7:BB:F8:DD;

I have set the correct interface in /etc/conf.d/dhcp for eth0
in /etc/conf.d/net I have set for eth0
iface_eth0=" broadcast netmask"
/etc/init.d/dhcp restart after each configuration change I get

master ~ # /etc/init.d/dhcp restart
 * Stopping dhcpd ...                                                     [ ok ]
 * Setting ownership on dhcpd.leases ...                                  [ ok ]
 * Starting dhcpd ...
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit
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/eth0/00:50:da:0f:cc:7f/
Sending on   LPF/eth0/00:50:da:0f:cc:7f/
Sending on   Socket/fallback/fallback-net                                 [ ok ]
master ~ #
/var/log/messages shows the same and nothing else
So I see that it is listening on the correct interface (eth0)

I have a ethernet cable from eth0 to a switch and then my client (node01) off that switch trying to get dhcped. Why is my client not getting dhcped?

I would really like any help with getting this dhcp server working properly. Thanks
Old 02-09-2006, 08:00 AM   #2
LQ Newbie
Registered: Nov 2005
Location: the Netherlands
Distribution: Ubuntu, Mandrake, DSL
Posts: 24

Rep: Reputation: 15
Did you try to connect your box directly to your server (with cross-cable), just to find out it ain't a problem with your switch between them..
Otherwise try to do it static(you're shure the hardware is ok)(with or without switch)some switches are able to ping through network (with serial cable and the app. minicom)
It seems a workable setup,so maybe this will help?

Old 02-09-2006, 08:06 AM   #3
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
You could try something like;
# nano /etc/dhcp/dhcpd.conf
(Here is a sample configuration file:)
ddns-update-style interim;
subnet netmask {
    default-lease-time 259200;
    max-lease-time 518400;
    option subnet-mask;
    option broadcast-address;
    option routers;
    option domain-name-servers;
# nano /etc/conf.d/dhcp
(Set IFACE="eth0")
# rc-update add dhcp default
# /etc/init.d/dhcp start


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing server IP address from DHCP not working khooke Linux - Networking 3 09-25-2005 10:00 AM
dhcp server is not working properly..... shahg_shahg Linux - Networking 1 02-23-2005 08:12 AM
DNS from DHCP server not working mikegorb Linux - Networking 1 10-25-2004 04:02 AM
Simple Debian Router including a DHCP Server stormblast Debian 20 09-22-2004 06:11 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration