I have a Raspberry Pi 3 which is using an external USB WiFi adapter. (ex: TL-WN722N). Therefore, the RPI3 has two wifi interfaces. (wlan0 (internal) and wlan1 (external))
I'm using Raspbian Stretch Lite (2017-09-07)
I would like my Raspberry Pi 3 to use two differents wpa_supplicant.conf files. That is one config file for wlan0 and one for wlan1.
However, I'm not sure where I must specify this information.
Do I have to change the /etc/network/interfaces
file ?
Do I have to change the /etc/dhcpcd.conf
file ?
I'm a bit confused because it seems the network configuration is changing on every release of Raspbian. I'm not sure /etc/network/interfaces must be use anymore since it contains nothing except comments on Raspbian Stretch
Would it be valid to use the following configuration:
sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant_wlan0.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant_wlan1.conf
Is it ok to add configuration in /etc/network/interfaces
with Raspbian Stretch ?
wpa_suppicant.conf
towpa_supplicant.conf
works perfectly. – Hola Soy Edu Feliz Navidad Oct 12 '19 at 15:41