Web lists-archives.com

Re: changing the ethernet interface name

On Mon, Aug 07, 2017 at 05:07:15PM +0200, Pierre Frenkiel wrote:
> On Mon, 7 Aug 2017, Zenaan Harkness wrote:
> > $ locate persistent-net
> > /etc/udev/rules.d/70-persistent-net.rules
> > 
>   hi Zenaan,
>   thank you for your advice, but I think that few Debian users ignore the locate command!
>   ==> ls /etc/udev/rules.d
>       50-pam_usb.rules
>       56-hpmud.rules
>       60-vboxdrv.rules


Perhaps mine comes from an older version of Debian, or perhaps it's
just something that must be manually created (which I did a few years
ago now), IDK sorry.

I've attacked mine in case it's useful for you - just add lines in
there acccording to each relevant MAC address, restart networking and
you should be good to go. Replace the lines I've got there.

For my current install, it's the only file I have in that directory.
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f0:de:f1:11:01:10", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x:0x (asix)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:c6:22:2e:2a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"