How do I manually disconnect/reconnect DHCP DSL internet connection?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
How do I manually disconnect/reconnect DHCP DSL internet connection?
Hi.
I am on a wired only home network with 3 other PC's. Of the three PC's, only one runs Linux full time: mine. Needless to say I am extremely worried about security for the entire network (that's why it's a wired connection as opposed to a wireless connection). If it is possible at all, I would like some way of disconnecting (and reconnecting) my PC from the internet connection, without disconnecting any wires from the router (ie. via software). Is this possible with Linux?
PS. Please do not turn this into a flame war on "why wireless internet is better," or "wireless internet is secure." I'm sticking with my wired connection, and that is that. Please stay on target with this thread. Thank you.
On many distros (like Debian), you just get the root user to do:
ifdown eth0
ifup eth0
Worst case (this will work on all distros):
ifconfig eth0 down
ifconfig eth0 up
If you're really keen, you can probably hack an "ethernet on demand" program ...
Switching to 'root' all the time to bring the interface down and up is probably a bigger security threat than the internet. I'm sure a lot of us reading this post are wondering if you really know what you're doing. This isn't WinDuhs - if you're not running services, the only thing to worry about is phishing when using a web browser. Well, that and a fatal flaw in the Linux network drivers. Or a remotely exploitable flaw in the browser.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
What are you running on your other 2 PC's that you are only worried about the one running Linux part time? Slackware is more secure than winbloze any day.
Now for the obligatory: (wireless internet sucks! let the flames begin....!!!!)
What are you running on your other 2 PC's that you are only worried about the one running Linux part time? Slackware is more secure than winbloze any day.
Now for the obligatory: (wireless internet sucks! let the flames begin....!!!!)
The three PC's are running the following OS's:
1)My wife's PC: Win XP (even she doesn't want Vista - thank God!)
2)My daughter's PC: Dual-booting Win 2000 Pro & Slackware 12.0
3)My PC: Slackware 12.0 (tried 12.1, didn't work quite right on my old hardware)
I'm afraid that whatever bug the Windbloze PC's got might transfer over. Some geek at Microsoft might be writing a Linux virus. They probably write so many of their own viruses they definitely have the practice.
One of the perks of having a high bandwidth connection is that you don't have to disconnect and reconnect constantly when you want internet access. In this respect, there ways to mimic this functionality but they all basically involve disabling your network card, or stopping networking services on your box. As it was said before, bringing down your interface will do the trick.
One of the perks of having a high bandwidth connection is that you don't have to disconnect and reconnect constantly when you want internet access. In this respect, there ways to mimic this functionality but they all basically involve disabling your network card, or stopping networking services on your box. As it was said before, bringing down your interface will do the trick.
Code:
ifdown eth0
or how about
Code:
etc/rc.d/rc.inetd stop
Soooooo.... if this stops the access to the net for MY PC only:
"ifconfig eth0 down" disconnects me, but "ifconfig eth0 up" does not reconnect me. I can only reconnect after reboot. "etc/rc.d/rc.inetd stop" doesn't work at all, and "etc/rc.d/rc.inetd start" does not either.
All the other PC's connected to the router are independent of each other. The DSL modem is attached to the router. The router's power comes from the power bar that my PC is also attached to, but my PC does not need to be turned on to allow the others internet access.
So, to clarify, the DSL modem is attached to the router, and the three PC's are attached to the router (via their own network card), giving the three PC's internet access. Isn't this way the right way to do it?
Let me ask again:
1) "ifconfig eth0 down" drops the net from my PC <===solved
2) "ifconfig eth0 up" does NOT reconnect me <===unsolved
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.