Jump to content

Way to reduce "Bringing up interface eth0" delay?


Guest tedhuntington
 Share

Recommended Posts

Guest tedhuntington

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest tedhuntington

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

/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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...