Hardware: 6309 SBC.
I want to be able to set the ethernet port between a static ip or dhcp. To do this, I presume I would need the interface name. The tricky part is this is intended to be a part of an image that will be written to multiple boards.
I don’t want to manually tweak something on each install.
Before predictable naming, I could address interface ‘eth0’ and that would stay constant on all boards, but now with predictable naming, I believe it is depends on the hardware and can be different between boards.
I had some questions:
- On regular amd64 distribution of debian, there are ways to do this using GRUB flags etc. Is there an equivalent on Linaro?
- I tried the recommended way of symlinking to /dev/null as suggested here: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/,
- There is also the suggestion to
You pass the net.ifnames=0 on the kernel command line, but I’m not sure how to achieve that on Linaro.
Since this is such a common use case, is there a recommended way of finding/using the name for network interfaces on systems using predictable network interfaces? Perhaps I don’t even need to know the name?
ddthe same image onto multiple boards, will the ethernet portname stay the same on all the boards, or will Linaro rename them on boot. This doesn’t sound right but just throwing it out there in case someone could comment on it.
On a single system, I would do this by finding the hwid/interface name manually, and perhaps modifying a udev rule. But if I want this to be done on multiple machines, without manually trying to find each id, what options do I have?
Is there a udev rule that I can write that let’s linaro fall back to the old naming scheme (by forcing it to use scheme 5 as mentioned in the previous link.)
Apologies if I’m missing something obvious.
Would really appreciate any help!