I'm trying to setup two wireless AP on a Raspberry Pi. Lets call the two APs AP0 and AP1.
I use hostapd to setup the APs and dnsmasq as the dhcp server.
AP0 is setup on the built-in WiFi on the RasPi at wlan0
AP1 is setup on an external USB adapter that supports AP mode at wlan1
This is my /etc/network/interfaces file:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.43.1
netmask 255.255.255.0
hostapd /etc/hostapd/hostapd.conf
auto wlan1
allow-hotplug wlan1
iface wlan1 inet static
address 192.168.4.1
netmask 255.255.255.0
hostapd /etc/hostapd/hostapd1.conf
and this is my /etc/dnsmasq.conf file:
dhcp-range=wlan0,192.168.43.50,192.168.43.150,24h
dhcp-range=wlan1,192.168.4.50,192.168.4.150,24h
AP0 and AP1 are on channels 6 and 11 respectively.
I am able to connect multiple clients to AP1 and the clients can speak to each other.
But the issue is with AP0 where the client connects for a second and then disconnects and this keeps on repeating. How to fix this issue?
/etc/network/interfacesis deprecated :) – mottom Nov 05 '20 at 18:47dhcpcdwith a hint in/etc/network/interfaces. What operating system do you use? – Ingo Nov 05 '20 at 19:00dnsmasq? – mottom Nov 05 '20 at 19:06systemd-networkdyou do not need additional helpers likednsmasqandhostapd. Just a moment please I'm just testing the double access point setup and will give you then an answer. – Ingo Nov 05 '20 at 19:24