On Mi, 29 ian 20, 12:33:32, Bob Weber wrote: > > I have struggled with this for hours before. The systemd naming convention > is explained at: > > https://www.freedesktop.org/software/systemd/man/systemd.link.html > <https://www.freedesktop.org/software/systemd/man/systemd.link.html> > > Pay attention to the Examples near the bottom of the page. There are > udevadm commands that you can help you check the configuration. I ended up > with the four following configurations: > > > 1. kernel command line option in grub add "net.ifnames=0" > > > 2. /etc/systemd/network/10-eth0.link: > > [Match] > MACAddress=00:xx:xx:xx:33:ce > > [Link] > Name=eth0 > > > 3. /etc/systemd/network/10-eth0.link: > > [Match] > MACAddress=00:xx:xx:xx:33:d2 > > [Link] > Name=eth1 > > > 4. And finally: > > /etc/systemd/network/99-default.link linked to /dev/null > > > > This is my main router machine so these names have to be the same on every > boot so the firewall rules work as desired. There also seems to be bugs in > systemd (I use testing) so that these appear to not work. I think the key > was setting 99-default.link to /dev/null.
As an additional suggestion, if one takes the time to set up per interface .link files one might as well use intuitive names, like "internet", "lan", etc. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
signature.asc
Description: PGP signature