How to prevent network reconnecting automatically?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 to prevent network reconnecting automatically?
I am working on Debian Stable Linux with XFCE and it is working very well. I have network-manager installed (in XFCE) and I used to disconnect network from there when not using it.
Then once I used command from commandline: "dhclient eth0" to connect to network.
Now the net gets connected automatically a few seconds after I disconnect if from network-manager applet.
How can I prevent net from reconnecting automatically? Thanks for your help.
Automatic reconnection has started again after re-installation of dhcpcd and dhclient.
Above code does not help.
You should be able to disable auto-connection in the network manager. Right click on the nm-applet icon, and select "Edit Connections". Open the wireless tab, and select the connection in question, and click the edit button. There *SHOULD* be a box that says "Connect Automatically"...uncheck it, and it should then prompt you for a password before you can connect.
Not in front of a system where I can test that, but there should be a place in the applet to configure connections.
You should be able to disable auto-connection in the network manager. Right click on the nm-applet icon, and select "Edit Connections". Open the wireless tab, and select the connection in question, and click the edit button. There *SHOULD* be a box that says "Connect Automatically"...uncheck it, and it should then prompt you for a password before you can connect.
Not in front of a system where I can test that, but there should be a place in the applet to configure connections.
I do not have access to that computer at present, but I think problem is related to dhclient, as is mentioned in following links:
Yes, but the network manager is the one initiating the connection...if you tell it to NOT connect to a network, it won't, and won't then try to get a DHCP address.
Yes, but the network manager is the one initiating the connection...if you tell it to NOT connect to a network, it won't, and won't then try to get a DHCP address.
I understand now. I will try it and post feedback here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.