View previous topic :: View next topic |
Author |
Message |
static_k n00b
Joined: 10 Oct 2005 Posts: 73 Location: NY
|
Posted: Wed Dec 14, 2005 9:20 pm Post subject: Network hangs on boot |
|
|
Hi All,
when i boot my laptop without a network cable plugged in it gets to the point where it trys to bring up the eth0 interface and since there is no cable plugged in it will sit there for like 2 minutes, fail to get an address and then move on to booting the rest of the way.
does anyone have any ideas?
thanks. |
|
Back to top |
|
|
dambacher Apprentice
Joined: 11 Feb 2003 Posts: 290 Location: Germany
|
Posted: Wed Dec 14, 2005 9:27 pm Post subject: |
|
|
I assume you have configured your ethernet device to use dhcp?
gentoo runs dhcpd to get the adress. dhcpd will try for some time and then give up and exit.
depending networking services will not be startet then.
you can do two things: either not use dhcp but a fixed ip adress
or set the timeout lower. looking at /etc/conf.d/net.example you can find:
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"
|
I recommend to set a fallback configuration, then.
bye
Ulf |
|
Back to top |
|
|
static_k n00b
Joined: 10 Oct 2005 Posts: 73 Location: NY
|
Posted: Wed Dec 14, 2005 10:06 pm Post subject: |
|
|
yes i am running dhcp on the interface.
setting the timeout just seems like a workaround to me.
i would think that if no link is even detected it shouldn't even bother looking for an ip address. |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed Dec 14, 2005 11:21 pm Post subject: |
|
|
Look at ifplugd. |
|
Back to top |
|
|
|