Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpd Fails: Process Dies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
brianakee
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 78

PostPosted: Fri May 07, 2004 10:17 pm    Post subject: dhcpd Fails: Process Dies Reply with quote

Kernel 2.6.5
Sun Ultra5

net-misc/dhcp-3.0_p2-r6

Interesting behavior noted with dhcpd. I can start the server fine. I get startup messages in /var/log/messages, and ps ax shows:
Code:

15302 ?        Ss     0:00 /usr/sbin/dhcpd -pf /var/run/dhcp/dhcpd.pid -q -user dhcp -group dhcp eth0


When I try to get an IP from this system the process dies. I see no error messages in the log file. I can find no core files on the system.

Here are my configs:

/etc/dhcp/dhcpd.conf
Code:

ddns-update-style none;
authoritative;
subnet 10.10.111.0 netmask 255.255.255.0 {
  range 10.10.111.100 10.10.111.110;
  option routers 10.10.111.1;
  option domain-name "domain.local";
  option domain-name-servers 10.10.111.1;
  default-lease-time 600;
  max-lease-time 7200;
}


/etc/conf.d/dhcp
Code:

IFACE="eth0"
DHCPD_OPTS=""


Any ideas?

TM
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Mon May 10, 2004 10:32 am    Post subject: Reply with quote

just an idea: what are your build options (found in /etc/make.conf)

try rebuilding the thing (dhcpd) with maximum -O2
Back to top
View user's profile Send private message
Mit
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 260
Location: Under a rock.

PostPosted: Mon May 10, 2004 2:21 pm    Post subject: Reply with quote

i had a similar thing with dhcpd dying, i found it was an issue with the permissions of the /var/lib/dhcp/dhcpd.leases file - it couldn't write the new leases and thus bailed on me. Check your logs to check what happens when dhcp bails.
Back to top
View user's profile Send private message
weyhan
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 245

PostPosted: Mon May 10, 2004 4:19 pm    Post subject: Reply with quote

The only differentses I see between your config and mine is, yours is missing a broadcast-address option in the /etc/dhcp/dhcpd.conf file.

Code:
option broadcast-address xxx.xxx.xxx.xxx


You might want to try that. Other than that, I have no idea.

HTH
_________________
Han.
Back to top
View user's profile Send private message
brianakee
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 78

PostPosted: Fri May 14, 2004 5:03 am    Post subject: Reply with quote

sorry for the delay.


nielchiano:
Code:
CFLAGS="-Os -mcpu=ultrasparc -pipe -fomit-frame-pointer"


I wonder if the -Os optimization setting is causing this? This is my first time using it. This ultra5 is shy on precious memory resources. I thought this might help it along a little.

I actually have it running on another system with the following CFLAGS:
Code:
CFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer"

It seems to work ok here, but I wish to remove it from this system.



weyhan:
I will try the broadcast-address option. I would not think that this would cause it to crash, however I have seen stranger things.



Mit:
The weird thing is that the process just seems to crash. I do not get anything in the logs (at least not in /var/log) after it crashes. I also cannot find any core dumps (via find / -name core*). The process just vanishes. In any case, the dhcpd.leases file is owned by dhcp:dhcp with 644 permissions. I may try tweaking the permissions a little to see if this helps.


Thanks for the input!

TM
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri May 14, 2004 7:21 am    Post subject: Reply with quote

brianakee wrote:

nielchiano:
Code:
CFLAGS="-Os -mcpu=ultrasparc -pipe -fomit-frame-pointer"


I wonder if the -Os optimization setting is causing this? This is my first time using it. This ultra5 is shy on precious memory resources. I thought this might help it along a little.

just try without any optimization flag. Usualy they do what they're supposed to do, optimize; but sometimes they change the code too much and brake things...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum