LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ifupdown/ifplugd equivalent(s) for Slackware? (https://www.linuxquestions.org/questions/slackware-14/ifupdown-ifplugd-equivalent-s-for-slackware-283445/)

alephnull 01-28-2005 03:36 PM

ifupdown/ifplugd equivalent(s) for Slackware?
 
Hello All,
I've (mostly) successfully installed Slackware 10.0 on an IBM T23 laptop. I am now trying to find some mechanism that will contact the DHCP server when I disconnect the eth0 and reconnect at another location. Looking through the forums, I find that ifplugd is supposed to be good for this, but it relies on ifupdown, which I have only been able to find for Debian.
Does anyone know of a diffeerent tool or set of tools that will let Slack automagically detect when I have disconnected/reconnected my network cable and then contact the DHCP server accordingly? Currently, I must actually reboot to make a new network connection... I assume that there is a clued method of doing this, but I (obviously) don't know what it is.
Any help is greatly appreciated.

Thanks,
~ben

jrtayloriv 01-28-2005 03:38 PM

man dhcpcd

enjoy,
jrtayloriv

WMD 01-28-2005 05:03 PM

Quote:

Currently, I must actually reboot to make a new network connection...
No, you don't. /etc/rc.d/rc.inet1 restart should work well enough.

alephnull 01-28-2005 10:56 PM

You guys rock!
 
Thanks a bunch jrtayloriv... I had looked at that man page previously but not long enough. WMD, that was definitely part of what I was looking for. Put it all together with ifplugd, and now my network state is auto detected :D

For anyone else who may be in a similar situation to myself (laptop and changing network states), ifplugd is worth looking into if you want the convenience of automatic connection. For Slackware, edit the /usr/local/etc/ifplugd/ifplugd.action to use "dhcpcd -dn" instead of "ifup" and "dhcpcd -k" instead of "ifdown". ifplugd does not exist in package form; source is available at http://freshmeat.net/projects/ifplugd/ . It requires libdaemon, which must also be compiled from source and is available at http://freshmeat.net/projects/libdaemon/ .

Happy Computing and Many Thanks,
~ben


All times are GMT -5. The time now is 03:42 PM.