Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hey guys. i noticed when im starting up my laptop (wireless is busted) and i dont have the ethernet cable plugged in, it doesnt seem to detect it after that. basically after slackware has already been booted, if i want to connect to the internet i have to restart it with the ethernet cable plugged in. is there anyway i can get slackware to detect and configure when i plug in my cable, or is there a command to refresh the network?
command on your machine booted with the cable unplugged? Are you using dhcp or a static IP? Normally, Slackware will detect and configure your ethernet card with or without the cable, unless you're using dhcp, in which case, of course, there's no way to get an IP without the cable.
You should look at 'ifplugd'. 'ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. ifplugd interfaces with your distribution's native network configuration utilities.'
This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
Well, your eth0 interface is up and even has an IP. Is it the one we are talking about? So, the problem is not in the interface.
What probably happens, when you boot with the cable unplugged, the system obviously can't get an IP from the DHCP server and assigns some other IP to the device. This IP is not valid in your network, so when you plug the cable, there's no internet access.
I would try the following:
Since you have to use DHCP you must get your IP _after_ you plug in the cable anyway. So, try to run (as root) /etc/rc.d/rc.inet1 restart
right after you do that. If it still doesn't work, we'll need to look into routing and DNS issues.
Beautiful! Worked perfect, thanks alot uncle-theodore!
I love slackware (been using it for a month, used fedora for a few years before), whenever theres an issue ive been able to solve it. and even better there not really problems, usually its just a configuration thing. anyway thanks again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.