LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-08-2006, 02:43 PM   #1
GUIPenguin
Member
 
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

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

subnet 192.168.1.0 netmask 255.255.255.0 {
        option domain-name "cluster";
        range 192.168.1.10 192.168.1.99;
        option routers 192.168.1.100;

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

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

Code:
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 http://www.isc.org/sw/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/eth0/00:50:da:0f:cc:7f/192.168.1.0/24
Sending on   LPF/eth0/00:50:da:0f:cc:7f/192.168.1.0/24
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
sjoerdvvu
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
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

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


Reply


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 06:21 PM.

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