Forget that stackexchange stuff it's three year old junk and irrelevant to Raspbian Stretch.JacoFourie wrote: ↑Tue Nov 28, 2017 1:54 pmHere they say it can be done but I dont see the files they are talking about.
https://raspberrypi.stackexchange.com/q ... -and-wlan1
Unless you are using a PI with onboard WiF; for the Pi3 and PIZeroW which is connected over sdio will use the name wlan0DougieLawson wrote: ↑Tue Nov 28, 2017 5:51 pmForget that stackexchange stuff it's three year old junk and irrelevant to Raspbian Stretch.JacoFourie wrote: ↑Tue Nov 28, 2017 1:54 pmHere they say it can be done but I dont see the files they are talking about.
https://raspberrypi.stackexchange.com/q ... -and-wlan1
Enable predictable names and your wlan0 will become wlxaabbccddeeff (based on the hardware MAC address of wlan0), your wlan1 will become wlxffeeddccbbaa (based on the hardware MAC address of wlan1) and those names can NEVER change as the MAC address is burned into the hardware.
That's precisely what predictable names are for so that you can configure your network safe in the knowledge that nothing changes. You won't get any bad surprises.
Code: Select all
ln -s /dev/null /etc/systemd/network/99-default.link
Code: Select all
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:cd:f5:98", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:98:a0:cd", NAME="wlan1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="60:e3:27:17:55:85", NAME="wlan0"
Does this mean I use the MAC address of each device and config it this way ?sparkie777 wrote: ↑Wed Nov 29, 2017 11:05 amthere are 2 things to do:
1. switch off this 'predictable naming' crap. all it really does is to give unpredictable names unless you once had a chance to see the given interface names on a booted system. if you want back predictable names like eth0, eth1, wlan0, wlan1, wlan2 just do:2. for explicit assignments create a file '/etc/udev/rules.d/72-xxx.rules'. A sample for this looks like this:Code: Select all
ln -s /dev/null /etc/systemd/network/99-default.link
Code: Select all
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:cd:f5:98", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:98:a0:cd", NAME="wlan1" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="60:e3:27:17:55:85", NAME="wlan0"
sparkie777 wrote: ↑Wed Nov 29, 2017 11:05 am... all it really does is to give unpredictable names unless you once had a chance to see the given interface names on a booted system...Code: Select all
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:cd:f5:98", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:98:a0:cd", NAME="wlan1" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="60:e3:27:17:55:85", NAME="wlan0"
Code: Select all
apt purge firmware-brcm80211
The on-board WiFi should be allocated `wlan0` even with Predictable Network Interface Names.JacoFourie wrote: ↑Wed Nov 29, 2017 1:38 pmNo we need both.
We want to set-up the on-board as an AP and the dongle as the client.
If the pi is in a wifi hot spot it should connect to the network.
But if it is not then we want to be able to connect to the Pi's AP and then control it that way.
Code: Select all
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="brcmfmac", NAME="wlan1"
I wouldn't ever dare to publish untested code
ok, I don't know this configuration. But at least my suggestion of Post should also work in your special case.