How to disable networking via command line?

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gwar!

How to disable networking via command line?

Post by Gwar! »

Simple question, how do I send via the command line the command that is sent when I right click the network manager applet in the bottom right of the gnome panel? Both to enable and disable all networking (not just wireless).

I have only 2 devices listed by ifconfig, "lo" and "wlan0"

I have tried:
sudo ifconfig wlan0 down
sudo stop networking
sudo /etc/init.d/networking stop

As well as the respective up/start commands and combinations of all of the above, and none of them do what the right click and deselect do! :cry:

Any help in the matter would be much appreciated!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Networking”