Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using wlan0 and wlan1 rather than eth0 #198

schwieb opened this issue Jun 5, 2018 · 2 comments


None yet
3 participants
Copy link

commented Jun 5, 2018

I'd like to use the built in wlan0 connection and a usb wlan1 connection rather than eth

  • Raspberry Pi hardware: Pi 3 Model B
  • Raspbian version: Stretch
  • RaspAP Quick Install

Unfortunately, every time I connect wlan0 to the local AP, it also connects the wlan1 to that same AP rather than broadcasting. How do I dedicate one of the wlan devices to the WAN Internet and the other to the LAN?



This comment has been minimized.

Copy link

commented Jul 6, 2018

I had the same problem, and I managed to resolve it by adding nohook wpa_supplicant to the interface in the /etc/dhcpcd.conf file.

In my case, I have wlan0 serving as the access point, and wlan1 as client. I'm not 100% sure what was there originally, but in my current, working configuration, the following lines are at the bottom of my /etc/dhcpcd.conf:
interface wlan0
static ip_address=
static domain_name_servers=
nohook wpa_supplicant

Beware, there are a number of other changes that will need to be made to get this working. For example, in /var/www/html/includes/config.php, you'll need to change define('RASPI_WIFI_CLIENT_INTERFACE', 'wlan0'); to wlan1.

You'll also need to add the following lines to the /etc/sudoers file, if you want scan functionality to work in RaspAP:
www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wlan1 scan_results
www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wlan1 scan


This comment has been minimized.

Copy link

commented Apr 13, 2019

@randyoo I've updated the wiki accordingly, thanks

@billz billz closed this Apr 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.