I have a Raspbian 9.4 system set up as an access point but cannot hot-plug a network interface on usb0 without losing wlan0.
If I boot the machine I can connect from other machines to the network I've set up on wlan0 using dnsmasq either with or without usb0 in place:
A) If I have a network interface plugged into usb0 at boot time, the access point is available, including NAT (via iptables) as I expect.
B) If I have no network interface plugged into usb0 at boot time, then the access point is available, but only as a LAN as I expect.
The problem arises when I boot without a device on usb0 and then hot-plug it after the system is up and runnning. If I do that, then wlan0 disappears when usb0 comes up.
The contents of /etc/network/interfaces.d/wlan0 are:
Code:
iface wlan0 inet static
address 10.42.24.1
netmask 255.255.255.0
And the contents of /etc/network/interfaces.d/usb0 are:
Code:
allow-hotplug usb0
auto usb0
iface usb0 inet dhcp
What can I do to keep the access point on wlan0 available even after I hot-plug usb0?