Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP problems

Reply
Thread Tools Display Modes

DHCP problems

 
 
Thomas Rasmussen
Guest
Posts: n/a

 
      10-08-2009, 05:50 PM
Having a strange problem with dhcpd - it won't start under boot.
Starting it manually with "service dhcpd start" works fine.

grep dhcpd /var/log/messages gives me:

Oct 8 19:22:11 server dhcpd: No subnet declaration for eth0 (no IPv4
addresses).
Oct 8 19:22:11 server dhcpd: ** Ignoring requests on eth0. If this is
not what
Oct 8 19:22:11 server dhcpd: you want, please write a subnet declaration
Oct 8 19:22:11 server dhcpd: in your dhcpd.conf file for the network
segment
Oct 8 19:22:11 server dhcpd: to which interface eth0 is attached. **
Oct 8 19:22:11 server dhcpd:
Oct 8 19:22:11 server dhcpd:
Oct 8 19:22:11 server dhcpd: Not configured to listen on any interfaces!

....which doesn't make any sense - dhcpd.conf:

ddns-update-style none;
ignore client-updates;

option domain-name "my.net";
default-lease-time 86400; # 24 hours
max-lease-time 172800; # 48 hours

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 4.2.2.6,4.2.2.2;
range 192.168.1.101 192.168.1.200;
}

ifconfig eth0:

eth0 Link encap:Ethernet HWaddr 00:1F05:A4:1B
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fed5:a41b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5856 errors:0 dropped:0 overruns:0 frame:0
TX packets:8010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:697550 (681.2 KiB) TX bytes:5502121 (5.2 MiB)
Interrupt:28 Base address:0x6000

Any ideas?
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-08-2009, 06:24 PM
Hello,

Thomas Rasmussen a écrit :
> Having a strange problem with dhcpd - it won't start under boot.
> Starting it manually with "service dhcpd start" works fine.
>
> grep dhcpd /var/log/messages gives me:
>
> Oct 8 19:22:11 server dhcpd: No subnet declaration for eth0 (no IPv4
> addresses).
> Oct 8 19:22:11 server dhcpd: ** Ignoring requests on eth0.


Could it happen that dhcpd starts before eth0 is configured ?
 
Reply With Quote
 
Thomas Rasmussen
Guest
Posts: n/a

 
      10-08-2009, 06:37 PM
Pascal Hambourg wrote:

> Could it happen that dhcpd starts before eth0 is configured ?


Oops... Didn't think of that - "chkconfig 99 1" in /etc/init.d/dhcpd did
the trick

Thanks for the tip
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP Problems Jorge Bravo Wireless Networks 4 09-29-2006 08:07 PM
problems with DHCP Brandon Owensby Windows Networking 2 08-23-2005 06:51 PM
DHCP Problems Robert Paris Windows Networking 6 07-30-2004 08:40 PM
DHCP Problems OysterCracker Wireless Internet 2 01-03-2004 04:03 PM
DHCP problems with Win 98 Marcelo Hidalgo Windows Networking 0 09-22-2003 05:08 PM



1 2 3 4 5 6 7 8 9 10 11