Dr.-Ing. Edgar Alwers wrote: > On Wednesday 23 October 2013 10:30:17 Casey Daniels wrote: >> you have edit you 70-persistent-net.rules and fix the entry that >> says eth0 (which should be your old ethernet adapter) and change the mac >> address to the mac address of your new ethernet adapte > > Casey, that did it, thank you very much. However, it is supposed that udev > generates the correct file, and I am only supposed to change the value of > NAME, see the following extract from my 70-persistent-netrules file: > > ------------------------- > # 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. > ------------------------ > > Has something been changed in udev ?
Yes. Newer udev has a different naming protocol. The names are *not* random, but designed to be persistent across boots. It takes into account the bus and position within the bus. This is needed in many cases when two identical ethernet connections are on a card or motherboard. Most of us have only one ethernet connection and prefer eth0, etc, so we change it with the rule, but the new naming mechanism is actually more robust. If you don't use 70-persistent-net.rules, you only need to change IFACE from eth0 to enp1s0. Changing the extension of ifconfig.eth0 is optional but I'd probably do it for consistency. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
