PDA

View Full Version : [SOLVED] how to enable/disable wireless in command line



bhuvi
March 7th, 2010, 07:01 PM
in ubuntu by right clicking the network manager applet and by toggling enable wireless i can switch on/off wireless but how to do it using command line.

not_a_phd
March 7th, 2010, 08:04 PM
I think the command you seek is:


ifconfig ra0 down

to bring it back up:


ifconfig ra0 up

matchett808
March 8th, 2010, 03:09 AM
remember to correctly replace ra0 with your interface (ath0 wlan0 eth0 eth1 etc etc etc!)

bhuvi
March 8th, 2010, 10:23 AM
replacing it with eth1 worked thanks

ngrieb
September 5th, 2011, 06:44 AM
How can I run this in a script at boot and shutdown (as it seems to require a sudo permission)? I am having eth0 problems when I boot, and I suspect it is because of the enabled eth0 connection at shutdown (I am running x86 11.04).

Thanks in advance.

fdrake
September 5th, 2011, 07:07 AM
How can I run this in a script at boot and shutdown (as it seems to require a sudo permission)? I am having eth0 problems when I boot, and I suspect it is because of the enabled eth0 connection at shutdown (I am running x86 11.04).

Thanks in advance.

this should help:
http://ubuntuforums.org/showthread.php?t=1838337

Jake5
March 3rd, 2012, 07:45 PM
What if this is not working, running lubuntu 11.10.