what is the Linux terminal command to enable wireless?
There is an option in the taskbar in Ubuntu named "Enable Wireless"
How can i enable and disable this option from the terminal ? I have already tried the commands ifconfig interface_name up ifconfig interface_name down These have no effect whatsoever. please reply |
You need to use iwconfig instead of ifconfig for wireless.
|
iwconfig then the interface name should do it. Are you using DHCP assignment or static?
|
When you use the "Enable/Disable" wireless does it actually turn your card off or does it just disconnect from the router? If you want to turn off the card rfkill is what you want. I believe "rfkill block wifi" to disable and "rfkill unblock wifi" to enable should work.
|
When i use iwconfig , this is the error that i get
root@ubn1# iwconfig wlan0 down iwconfig: unknown command "down" If i dont give "down" ,it just lists the wireless devices What should i do? |
What is the output of the ifconfig command and the iwlist command
|
Quote:
for me i have debian and it's work the command is: ifdown wlan0 |
Those commands just disconnect the wireless, do you want to disconnect or actually turn the card off?
|
It's workung now. Used a combination of rfkills and ifconfig
Rfkill refreshes the network and ifconfig down temporarily downs the network Problem solved Thanks for your help :) |
All times are GMT -5. The time now is 07:48 PM. |