How can I prevent udevd from renaming eth0 to em1

Reindl Harald h.reindl at thelounge.net
Tue Oct 16 08:27:59 UTC 2012



Am 16.10.2012 04:58, schrieb JD:
> I googled this and came across 2 purported
> solutions, neither of which worked.
> 1. Uninstall package biosdevname and reboot.
> 
> That did not prevent udevd from renaming eth0 to em1.
> 
> 2. Add the line
> biosdevname=0
> to /boot/grub2/grub.cfg
> 
> That did not work either.
> Any other way to get around this renaming?

find out your MAC-address with "ifconfig -a"
make a udev-rule like below (ONE line) for the MAC
reboot the machine after that and you are done

[root at rh:~]$ cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="78:ac:c0:b1:76:e4", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20121016/e261ace1/attachment.sig>


More information about the users mailing list