I don't want to use WICD or NetWork-Manager. What should I type to disconnect ?

EDIT: This one is different from the ones above, I want to disconnect. Another thing, I don't want use WICD nor Network-Manager. As a prove, the answer below is not the same as the answers provided in these questions.

  • Voting to re-open, however there seem to be two duplicates. Have you tried both? – Seth Apr 1 '13 at 22:01
  • @seth I didnt vote to reopen. it seems the mods decided to reopen it. as for the dupes. the solution that i want is not in these questions. user Douglas below wrote what I was looking for – Suhaib Apr 1 '13 at 23:39
  • 1
    You can see who re-opened your question by checking the revision history. Thanks for clarifying about the dupes. – Seth Apr 2 '13 at 3:18

You can take the wireless interface down using the command line.

Open a Terminal window, and enter:

ifconfig -a

You will get a list of all of the network interfaces. Your wireless will likely be called wlan0, and you can corroborate this with the information listed, such as the SSID, etc.

In Terminal enter:

sudo ifconfig wlan0 down

You will be asked for your password, in order for this command to be run with the permissions needed. (if you don't have the permissions, you will be warned so.) This assumes wlan0 was your wireless interface.

Enter again:

ifconfig -a

and you should see wlan0 (or your interface) has been labelled DOWN.

To reverse this, enter:

sudo ifconfig wlan0 up
  • wow, nice and simple answer thanks for porivding the ifconfig up. There are some issues though, My interface is called eth1 So its not necessarily called wlan0. So you might wan to update your answer to change it to be intefaceX or something like that. – Suhaib Apr 1 '13 at 16:51
  • @Suhaib, very unlikely for a wireless interface to named ethX, is this within a virtual machine? – guntbert Apr 1 '13 at 20:50
  • @guntbert, No! I am not using virtual one. here is a proof i.imgur.com/F1qFna3.png – Suhaib Apr 1 '13 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.