昨日更新系统后网卡再一次又被无故的修改成了不认识的名字,用arch还真是不省心,每次升级后再次重启都有不可预知的问题。(摔 以往的话遇到这个问题,只要是删除**/usr/lib/udev/rules.d/80-net-name-slot.rules**后重启,系统就会再次自动生成一个这个文件出来。现在规则改了,今天再去删的时候发现没有于是上wiki.archlinux.org查到修复方法。 如下 官网中是这么说的 1 注意这段话

If you would like to use the old interface naming scheme (ie. eth* and wlan*) you can accomplish this by creating an empty file at /etc/udev/rules.d/80-net-name-slot.rules (starting with systemd v209, this file should be /etc/udev/rules.d/80-net-setup-link.rules) which will mask the file of the same name located under /usr/lib/udev/rules.d.

中说明了需要建立一个empty file.原因应该是由于systemd升级了导致引用的文件改变,而需要自动生成配置信息的文件/etc/udev/rules.d/80-net-setup-link.rules 又不存在所以导致网卡命名失败就不认识了。手动去创建一下这个文件即可。

sudo touch /etc/udev/rules.d/80-net-setup-link.rules

重启 可爱的名字又回来了。 打完收工