Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem connecting (dhcp) on boot time
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
matthias23
n00b
n00b


Joined: 19 Jun 2004
Posts: 14

PostPosted: Mon Mar 26, 2007 8:32 am    Post subject: problem connecting (dhcp) on boot time Reply with quote

I tried to connect during boot time by
# rc-update add net.eth0 default
Now, when booting, dhcp tries to connect a few seconds and than gives up (no response).

When I issue
# dhcpcd
I have a connection after quite a while.

How can I tell the net.eth0 scrip to give more time for a response
and, ideally, not to block booting meanwhile?
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Mar 26, 2007 10:44 am    Post subject: Reply with quote

You can add dhcp arguments in /etc/conf.d/net: /etc/conf.d/net.example shows
Code:
# For passing custom options to dhcpcd use something like the following.  This
# example reduces the timeout for retrieving an address from 60 seconds (the
# default) to 10 seconds.
#dhcpcd_eth0="-t 10"
which you can use to increase it — the default appears to be 60 seconds.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
matthias23
n00b
n00b


Joined: 19 Jun 2004
Posts: 14

PostPosted: Mon Mar 26, 2007 11:20 am    Post subject: Reply with quote

Changed timeout back to 60 sec
(was on 10sec, must have changed it somewhen)
and it works.

Unfortunately, booting takes 30 sec longer now.
Do you possibly know how/if I can force booting to continue,
while dhcpcd is waiting for response?

I imagine to remember that, on my last computer,
it worked like that. But maybe connecting just went faster then.

Thank you,
Matthias
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Mar 26, 2007 3:18 pm    Post subject: Reply with quote

I think you've already pointed out the problem: there are several init scripts that are dependent on net which is dependent on eth0.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
deface
Apprentice
Apprentice


Joined: 17 Mar 2007
Posts: 205

PostPosted: Tue Mar 27, 2007 1:44 am    Post subject: Reply with quote

Get a faster dhcp server?
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