| Linux Forum Index » Linux Networking » DHCP problems... |
|
Page 1 of 1 |
|
| Author |
Message |
| Thomas Rasmussen... |
Posted: Thu Oct 08, 2009 11:50 am |
|
|
|
Guest
|
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:1F:D0:D5: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? |
|
|
| Back to top |
|
|
|
| Pascal Hambourg... |
Posted: Thu Oct 08, 2009 12:24 pm |
|
|
|
Guest
|
Hello,
Thomas Rasmussen a écrit :
Quote: 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 ? |
|
|
| Back to top |
|
|
|
| Thomas Rasmussen... |
Posted: Thu Oct 08, 2009 12:37 pm |
|
|
|
Guest
|
Pascal Hambourg wrote:
Quote: 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  |
|
|
| Back to top |
|
|
|
|