Am Samstag 30 Juni 2018 schrieb Haines Brown:
> c) alter the default policy for picking a different naming
> scheme by copying /lib/udev/rules.d/80-net-link-setup.rules to
> /etc/udev/rules.d/ and then edit it appropriately.
>
> In my devuan jessie machine, there is such a file and it has
> two lines. One is:
>
> # PCI device 0x1814:0x0601 (rt2800pci)  \
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",  \
> ATTR{address}=="68:1c:a2:04:21:74", ATTR{dev_id}=="0x0", \
> ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
>
> There is another line # PCI device 0x8086:0x153b (e1000e) \
> SUBSYSTEM=="net", ...
>
> However, on my new ascii machine, the directory /etc/udev/rules.d/ is
> empty. Can I simply copy the 70-persistent-net.rules file from my old
> Devuan jessie machine to the new ascii machine and uncomment the two
> lines?

Hello Haines,

I have two network interfaces, one integrated and one additional networkcard, 
which of the names got switched by udev. I applied exactly the solution which 
you describe with placed these udev rules, so, I believe, the configuration 
from your jessie system will work. Just make sure that the MAC address matches 
on the new system. My lines:

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \ 
ATTR{address}=="00:ac:bd:ce:df:xz", ATTR{dev_id}=="0x0", ATTR{type}=="1", \ 
KERNEL=="eth*", NAME="net0"

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \ 
ATTR{address}=="01:ac:bd:ce:df:xz", ATTR{dev_id}=="0x0", ATTR{type}=="1", \ 
KERNEL=="eth*", NAME="lan0"

Regards,
Stefan
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to