How to permanently add wireless interfaces with iw
Posted
by
walli
on Super User
See other posts from Super User
or by walli
Published on 2014-05-28T02:00:23Z
Indexed on
2014/05/28
3:34 UTC
Read the original article
Hit count: 646
How can I permanently add virtual wireless interfaces to my network configuration with iw?
I created the following interfaces:
iw phy phy0 interface add vwlan0 type station
iw phy phy0 interface add vwlan1 type __ap
The first is configured as a wifi client connecting to an existing network (wpa_supplicant) The second is configured as wireless hotspot (hostapd + dnsmasq)
The setup works, but now I can't quite figure out what the best strategy is to save this configuration permanently.
Have made an init script for wpa_supplicant Have made an init script for the hotspot Virtual adaptor network settings set in /etc/network/interfaces
But all this depends on the wireless interfaces being created. What would be the best way to make sure these interfaces are created before the network is set up and the services are run?
As a bonus, since this wireless interface is a usb device, would it be possible to have the interfaces created (and the services started) when the interface is hotplugged?
I know you can execute code after a network interface is up, but the wlan0 interface that is hotplugged should never be up.
Operating system is raspbian
© Super User or respective owner