LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-17-2005, 02:36 PM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
DHCP don't start


After configuring /etc/dhcp.conf and making sure that /var/lib/dhcp/dhcpd.leases is available on my Fedora Core 4 box , i'm trying to start the dhcp server , but i'm getting this message:

[root@FEDORA etc]# dhcpd
Internet Systems Consortium DHCP Server V3.0.2-RedHat
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.

No subnet declaration for eth0 (172.28.1.101).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **

Not configured to listen on any interfaces!

who can i configure the server to listen to the interface i want. i have eth0 and wlan0 interfaces on this box. i looked carefully in dhcp man pages but found nothing. thanks ......
 
Old 11-17-2005, 03:32 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Post your dhcp.conf file so we can tell what is wrong.
 
Old 11-17-2005, 04:34 PM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
ddns-update-style interim;
ignore client-updates;

subnet 192.168.2.0 netmask 255.255.255.0 {

option routers 192.168.2.1;
option subnet-mask 255.255.255.0;

option nis-domain "dream.net";
option domain-name "dream.net";
option domain-name-servers 192.168.2.2;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp 192.168.2.5 192.168.2.221;
range dynamic-bootp 192.168.2.223 192.168.2.254;
default-lease-time 21600;
max-lease-time 43200;

host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

the DHCP server's ip address is 192.168.2.222/24
 
Old 11-17-2005, 06:19 PM   #4
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
I wanted to piggy back on this question, I just installed Gentoo and I wanted to know how to decrease the amount of time that dhcpd takes to get an IP address. The file /etc/dhcp.conf doesn't exist.
 
Old 11-17-2005, 08:46 PM   #5
SirGertrude
Member
 
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
The DHCP server will hand out leases on any interface whose IP address resides on a subnet declaration defined in dhcpd.conf.

It looks like your interface eth0 has IP: 172.28.1.101. Is this correct? If so you need to change the interfaces IP address to 192.168.2.222. If this is not correct what is the IP address of your wlan0 interface? You can use "DHCPDARGS=" to set the listening IP address. ex: "DHCPDARGS=eth0 wlan0" will make dhcpd listen on eth0 and wlan0 for dhcp requests provided that they both have subnet declarations in the dhcpd.conf file

Quote:
I wanted to piggy back on this question, I just installed Gentoo and I wanted to know how to decrease the amount of time that dhcpd takes to get an IP address. The file /etc/dhcpd.conf doesn't exist.
You do not need dhcp.conf in Gentoo, you only need /etc/dhcp/dhcpd.conf. You will also need to edit /etc/conf.d/dhcp to include your listening interfaces. The only reason for delay in obtaining a lease that I can think of is the fact that dhcpd pings the IP address before handing out an IP address. You can either disable this (not advised), or set a static DHCP lease to receive a lease quicker.

I hope this helps.

Last edited by SirGertrude; 11-17-2005 at 08:48 PM.
 
Old 11-18-2005, 03:21 PM   #6
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
I wasn't clear enough, I have my wireless adapter set to automatically start on boot with dhcp. As an experiment, I wanted to test how long it takes to stop searching for an IP and continue the boot-up process. Sometimes I go places that don't have wireless available and I would like to boot up quickly and not have to wait 2-3 minutes for eth1 to find an IP address. So, is there a way to make my machine continue to boot while it searches for an IP in the background or set a time limit to cut down on the wait time?
 
Old 11-18-2005, 03:24 PM   #7
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
thanks for the information ... that was helpful

thanks for the DHCPDARGS=eth0 line ... i guess if i didn't have two cards in this machine i wouldn't have needed to update that. but this line should be edited in /etc/sysconifg/dhcpd not in /etc/dhcpd.conf
this was the way it worked for me at least.. thanks a lot ..
 
Old 11-18-2005, 04:09 PM   #8
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
mrsolo,
Your question is really quite different than waelaltaqi's, different enough that at first it made it hard to follow the thread on what he is having problems with. You may wish to post a seperate thread to linux-networking with a title like, "waiting too long for DHCP to get an address" to have your problem addressed.
 
  


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
dhcp doesn't want to start afterburner Linux - Newbie 7 02-26-2008 03:55 AM
DHCP won't start Dr. Doerke Linux - Wireless Networking 4 08-15-2005 08:57 PM
speeding up start-up by configuring dhcp ruh31 Linux - Networking 2 05-07-2005 01:43 AM
problems at start up, dhcp... the_y_man Slackware 1 03-11-2004 06:46 PM
Gnome, dhcp won't start stevenhasty Slackware 4 08-16-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration