Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Avoiding eth0 slowing boot.
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
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Wed Mar 10, 2004 4:49 pm    Post subject: Avoiding eth0 slowing boot. Reply with quote

Hi all. I'm currently running an IBM Thinkpad.

I currently have to leave net.eth0 off on boot. If my NIC is not connected to a network with DHCP it takes forever to time out.

I'd like to have eth0 start up automatically, and get an IP automatically. Is there anyway to avoid dhcpcd from holding up the boot process?

Thanks,
Daniel
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
buser
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 92
Location: right here

PostPosted: Wed Mar 10, 2004 5:18 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=63500&highlight=dhcptimeout
That should do it.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Mar 10, 2004 5:20 pm    Post subject: Reply with quote

dhcpcd per default uses a timeout of 60 seconds. you can adjust /etc/init.d/net.eth0 to include a parameter like "-t 10" for dhcpcd to set the timeout to ten seconds.
Back to top
View user's profile Send private message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Wed Mar 10, 2004 5:21 pm    Post subject: Reply with quote

I guess I should have searched a little harder. Oops!
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
Linki
n00b
n00b


Joined: 12 Nov 2003
Posts: 23
Location: Switzerland

PostPosted: Wed Mar 10, 2004 7:50 pm    Post subject: Reply with quote

To change the dhcp-timeout is IMHO a bad idea, because there are some large networks where it can take some time to get an IP. And second: even 10s are 9sec too much.

I suggest using ifplugd, it monitors your NIC and if you connect a cable it will automaticaly setup your interface... :-)
Back to top
View user's profile Send private message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Wed Mar 10, 2004 11:14 pm    Post subject: Reply with quote

ifplugd is exactly what I was looking for.

Sidenote: If you can't get an IP via DHCP in under 10 seconds than you need to step back and evaluate your network. :)
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
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