Guest tedhuntington Posted June 15, 2006 Report Share Posted June 15, 2006 Is there a way to reduce "Bringing up interface eth0" delay? or time out? Because I have an ath0 and eth0 network interface, but, for example, the eth0 is not avilable at work, so I don't want to wait for the "Bringing up interface eth0" to timeout, which takes a few minutes. is there any way to reduce this timeout to just a few seconds? thanks Ted Quote Link to comment Share on other sites More sharing options...
Qchem Posted June 16, 2006 Report Share Posted June 16, 2006 I'm guessing it is looking for an IP address via dhcp? If so it will be possible to reduce the timeout to something shorter by editing the startup file that brings up the network. Trouble is I'm not at a Mandriva box right now, so hopefully someone who is can post the name and path to the file you'll need to edit. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 16, 2006 Report Share Posted June 16, 2006 The file to edit would be /etc/sysconfig/network-scripts/ifcfg-eth0 but not sure what parameter you need to change. Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 16, 2006 Report Share Posted June 16, 2006 Simple answer is man dhclient.conf You can set the timeout to lower (default is 60 secs but may be higher on mandriva) but it will still try and try pre-used addresses... You can also control this... The man entry has the detail and some trial and error might be in order. Quote Link to comment Share on other sites More sharing options...
Guest tedhuntington Posted June 16, 2006 Report Share Posted June 16, 2006 ok the location of the file for me (mandriva 2006) is: /usr/share/doc/dhcp-client-3.0.3 I change timeout=5; retry=5; both were 60 But still there is the delay, I did a restart too and stil the delay. I found a file: /usr/share/doc/initscripts-7.61.1/sysconfig.txt that has this: " PERSISTENT_DHCLIENT=yes|no|1|0 Without this option, or if it is 'no'/'0', and BOOTPROTO=dhcp, dhclient is run for the interface in "one-shot" mode; if the dhcp server does not respond for a configurable timeout, then dhclient exits and the interface is not brought up - the '-1' option is given to dhclient. If PERSISTENT_DHCLIENT=yes, then dhclient will keep on trying to contact the dhcp server when it does not respond - no '-1' option is given to dhclient." and so I set this to NO in: /etc/sysconfig/network-scripts/ifcfg-eth0 DHCP_TIMEOUT=5 PERSISTENT_DHCLIENT=no there are also some config files with "timeout" at: /usr/share/doc/apache-conf-2.0.54/old_config/ but I am giving up on this, hopefully in the next Mandriva they will address that and also this "kicker" error I get when I do a shutdown (and maybe it's related to Firefox). thanks for the ideas, Ted Quote Link to comment Share on other sites More sharing options...
dexter11 Posted June 17, 2006 Report Share Posted June 17, 2006 The /usr/share/doc/ directory is the place of the documantation which comes with the packages. So changing /usr/share/doc/dhcp-client-3.0.3 won't have an effect on anything. Most likely it's a sample file. Look for the same looking file in the directory ianw1974 have given. Quote Link to comment Share on other sites More sharing options...
nchancock Posted June 17, 2006 Report Share Posted June 17, 2006 This may or may not be really bad ... :mellow: I just hit ctrl-c when that message pops up. I doesn't seem to harm anything and the computer boots just fine after that. Dirty hack, but it works for the small number of times that I have the computer off the ethernet. Quote Link to comment Share on other sites More sharing options...
Guest tedhuntington Posted June 18, 2006 Report Share Posted June 18, 2006 /usr/share/doc/dhcp-client-3.0.3/dhclient.conf is the only location dhclient.conf is found on my hard drive. Quote Link to comment Share on other sites More sharing options...
coverup Posted June 18, 2006 Report Share Posted June 18, 2006 I solved the same problem by creating two profiles ("work" and "home"). The profiles can be selected from lilo. When I am at home, I select "home" at the boot stage, and load WiFi. Otherwise I select "work", and load eth0. Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 18, 2006 Report Share Posted June 18, 2006 /usr/share/doc/dhcp-client-3.0.3/dhclient.conf is the only location dhclient.conf is found on my hard drive. This is probably because without a file it runs the defaults. Try copying it to /etc and see if it helps. Sorry not using mandriva or I would be more precise. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.