Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhclient default options
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
nurmi
n00b
n00b


Joined: 21 Jan 2009
Posts: 10

PostPosted: Wed Nov 16, 2011 12:55 pm    Post subject: dhclient default options Reply with quote

i got set using of the dhclient as dhcp module in /etc/conf.d/net

config_eth0="dhcp"
modules_eth0="dhclient"
dhcp_eth0="nodns"

the interface is configured correctly ... but the dhclient is always running with a " -1 " option, which is not suitable

/sbin/dhclient -e PEER_DNS=no -e IF_METRIC=10 -q -1 -pf /var/run/dhclient-eth0.pid eth0

the question is ... how can i modify the startup options of dhclient ? i need to remove the -1 option from the default configuration

thx
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Nov 16, 2011 1:57 pm    Post subject: Reply with quote

Normally when you scroll down in man page there are config files mentioned at the bottom.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
nurmi
n00b
n00b


Joined: 21 Jan 2009
Posts: 10

PostPosted: Wed Nov 16, 2011 5:21 pm    Post subject: Reply with quote

nope ... dhclient.conf in /etc/dhcp/ folder nor man for these things haven't got anything usefull

it's just that -1 parameter defines to stop after the first lease, dhclient exits and interfaces deconfigures if DHCP server don't respond or is down for some reason

it's something which is done in rc scripts during system startup

i just can't find out where it's set ... at least for now
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:20 pm    Post subject: openrc Reply with quote

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

This is owned by package openrc -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