LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dhcpcd, no network cable plugged in (https://www.linuxquestions.org/questions/slackware-14/dhcpcd-no-network-cable-plugged-in-175587/)

meyert 04-28-2004 01:16 PM

dhcpcd, no network cable plugged in
 
Hidili hodili.

I am using dhcpcd for my eth0 device. but when booting the system and no network cable is plugged in, then the dhcpcd client still tries to do a broadcast and a discover or vice versa.

Is there a way to change this behavior?

Because while dhcpcd is doing this, time goes by... :-)

with kind regards
Thomas

ringwraith 04-28-2004 01:33 PM

Disable dhcp? Why are you unplugging your network cable when you boot anyway?

coffeedrinker 04-28-2004 05:27 PM

I have a laptop and don't usually have the network cable plugged in (usually go with the wireless pcmcia card).

What I did to get this passage of time down is:

-change the line in /etc/rc.d/rc.M
/etc/rc.d/rc.inet1
to
/etc/rc.d/rc.inet1 &
(that makes it do the network stuff in the background)

I also dropped the time from 10 seconds to 8 by changing the /etc/rc.d/rc.inet1 line:

/sbin/dhcpcd -t 8 -h ${DHCP_HOSTNAME[$1]} -d eth${1}

Tinkster 04-28-2004 08:34 PM

Guess it largely depends on what your distro is how to
go about this, what I'm doing is to append a variable
LOCATION=<xxx> from lilo (with three different menu
entries for work, home, no_net) that will be evaluated
from /etc/rc.d/rc.inet1 (in mycase) ... if it's no-net inet1
just exits after setting up lo, if it's home it goes dhcp,
if it's work it comes up with a static IP.


Cheers,
Tink


All times are GMT -5. The time now is 07:17 PM.