Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[*] dhclient only requesting a lease once!
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
kiddigital
n00b
n00b


Joined: 02 Nov 2011
Posts: 4

PostPosted: Wed Feb 08, 2012 4:05 pm    Post subject: [*] dhclient only requesting a lease once! Reply with quote

I've switched from the default dhcpcd to dhclient because I needed additional options to be requested (option_6rd in this case). I am able to tell dhclient to request the additional option (see other thread), but dhclient only requests a lease once and then exits!

After (re-)starting the net.eth2 service (rc-service net.eth2 restart), I see the following in the processlist:
Code:
/sbin/dhclient -e PEER_DNS=no -e PEER_NTP=no -e IF_METRIC=2 -q -1 -pf /var/run/dhclient-eth2.pid eth2


I did not specify this behaviour anywhere (at least that I am aware off), but I also can't find where I have to change what so that the dhclient isn't started with the '-1' option.

For the record, the box is running baselayout-2.0.3 and openrc-0.9.8.4.

Any clues are highly appreciated...
Back to top
View user's profile Send private message
jflasch
n00b
n00b


Joined: 02 Sep 2002
Posts: 12

PostPosted: Mon Mar 19, 2012 4:15 pm    Post subject: /lib64/rc/net Reply with quote

look in /lib64/rc/net/dhclient.sh

This is owned by package operc -0.9.8.4 on my system.

You can open a bug against this to get someone to make it a parm instead of hard coding ... or you can change it and then watch or block openrc releases.

Hope this helps.
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