LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   eth0 causes looooong boot time (http://www.linuxquestions.org/questions/linux-software-2/eth0-causes-looooong-boot-time-252136/)

mrsolo 11-07-2004 02:40 PM

eth0 causes looooong boot time
 
Hey folks

I currently have my deafult network interface disabled at boot time. Here's why; my main machine is a laptop and I use it in different situations a lot. If I have the eth0 interface set to start on boot and I have the network unplugged, it takes about 5 minutes for it to realize this and continue booting. Is there a way to cut back the time it takes for the computer to boot without having to set eth0 to not start at boot.

ElPuello 11-07-2004 04:02 PM

Well, you could edit your /etc/dhclient.conf and add a timeout; thats what I do on my laptop.

For instance

timeout 10;

gives the client ten seconds to get an offer and then lets the boot carry on.

Hope this helps

mrsolo 11-07-2004 04:47 PM

it seems that I don't have this file, should I add it to make it do a 10 sec timeout?

mrsolo 11-07-2004 04:52 PM

I added it and it didn't do anything, any other ideas?

faralen 11-07-2004 05:28 PM

Assuming you're using DHCP, try opening /etc/sysconfig/network if it exists, and adding the line "DHCP_TIMEOUT=10" (or however many seconds you'd like).
It varies a little between different distros, so if that doesn't work, what are you running?

mrsolo 11-07-2004 05:30 PM

I use /etc/sysconf/network all the time. I will try adding that there and see what happens. My laptop is running MDK 10.0 with a lot of updates.

mrsolo 11-07-2004 06:16 PM

That didn't do a thing, any more ideas that could solve this?

faralen 11-07-2004 06:28 PM

If I remember right, the /sbin/ifup script starts the network interfaces, and calls the dhcpcd program from it. You could try searching through the file and if you see dhcpcd being called, add "-t 10" after it (for a timeout of 10 seconds).

Otherwise, sorry, out of ideas...

mAineAc 11-07-2004 06:48 PM

If you check out this page it tells you how to configure your dhcp:
http://www.whitefang.com/dhcp-agent/...p-agent_2.html

About halfway down is a section that says configureable variables nad it has a section Client Configuration Variable: dhcp-discovery-retries . I think this will force it not to try so long.

Mortus Canis 11-07-2004 08:46 PM

Quote:

Originally posted by faralen
If I remember right, the /sbin/ifup script starts the network interfaces, and calls the dhcpcd program from it. You could try searching through the file and if you see dhcpcd being called, add "-t 10" after it (for a timeout of 10 seconds).

Otherwise, sorry, out of ideas...

faralen is right, I did this exact thing on my laptop. It works.

nykobing 11-07-2004 09:29 PM

I use Mandrake with sbc dsl and I was having this problem too. I found a webpage and they said to:

eth0 fails to start: Try removing the "/etc/sysconfig/network-scripts/ifcfg-eth0" file.


I did that and everything worked perfect after that. I found it at http://users.dslextreme.com/~craig.l...notes/dsl.html


All times are GMT -5. The time now is 04:26 PM.