On Fri, 04 Apr 2014 07:57:42 -0500, Dale Schroeder wrote: > > ... > Also referencing one of Stephen's comments: >> >> If you only have one network interface of a given type, you >> probably don't need this file. After all, if your machine only >> has one ethernet interface, it's a pretty safe bet that it will >> be called eth0." > > That would be wonderful if it always worked that way; however, when I > replaced the NIC in a jessie system, there was no network connection and > lshw informed me that the new NIC was now eth1. That might be because > of the still existing persistent net rule. > ...
Yes, that's exactly why. My comment was based on the assumption that you have no existing 70-persistent-net.rules file. If the file doesn't exist, and you replace the NIC in a single-NIC system, the new NIC will be eth0, the same as the old NIC. But if you have a 70-persistent-net.rules file, it reserves eth0 for the old MAC address (which is no longer present) and so the new one is eth1. So whether this bug is fixed or not, the new NIC will be eth1 on the first reboot after swapping NICs. That is "working as designed". If you want the new NIC to be eth0 on the first boot, and you don't know its MAC address in advance, you must erase the 70-persistent-net.rules file prior to the shutdown to change NICs. (I recommend moving it to another directory, such as /root, rather than erasing it -- just in case.) Also, I need to correct some things I said earlier that are false or misleading. (1) net.ifnames=1 is required as a kernel command line option to enable the "Predictable Network Interface Names" feature of udev/systemd in Debian jessie, regardless of the kernel sources used to compile your kernel. (2) net.ifnames=1 is not required in order to use user-defined interface names in 70-persistent-net.rules, such as net0, net1, etc. It is required if you do not assign interface names in 70-persistent-net.rules and you want to use the system-generated names that come with the "Predictable Network Interface Names" feature, such as eno1, ens1, enp2s0, etc. I hope I haven't muddied the waters too much. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org