View previous topic :: View next topic |
Author |
Message |
matthias23 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Jun 2004 Posts: 14
|
Posted: Mon Mar 26, 2007 8:32 am Post subject: problem connecting (dhcp) on boot time |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wynn Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/46695354144c509f41a088.png)
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Mon Mar 26, 2007 10:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
matthias23 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Jun 2004 Posts: 14
|
Posted: Mon Mar 26, 2007 11:20 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wynn Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/46695354144c509f41a088.png)
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Mon Mar 26, 2007 3:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
deface Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo.gif)
Joined: 17 Mar 2007 Posts: 205
|
Posted: Tue Mar 27, 2007 1:44 am Post subject: |
|
|
Get a faster dhcp server? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|