M HYPE SPLASH
// news

Not able to create AD HOC network

By Emily Wilson

I am trying to create an adhoc network with following command in ubuntu 16.04:

sudo iwconfig wlan0 mode ad-hoc essid my-mesh-network ap 02:12:34:56:78:9A channel 1

however when I try to enable the interface, its giving me error

sudo ip link set up dev wlan0
output:
rtnetlink answers device or resource busy

This problem comes only when the interface mode is set to "Ad-Hoc"
In monitor mode or managed mode, this issue does not come.

Can you please tell me if this issue is due to the driver limitation or I am missing anything. Thanks in advance.

1 Answer

"rtnetlink answers device or resource busy"

I think it means exactly what it says. The device wlan0 is busy sending and recieving data to your router or access point, getting email, etc. I suggest that you tell it to stop:

sudo ifconfig wlan0 down

And try again:

sudo iwconfig wlan0 mode ad-hoc essid my-mesh-network ap 02:12:34:56:78:9A channel 1

If you have Network Manager running, you will probably need to stop it first:

sudo service network-manager stop
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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