udev 197 之后,对于 interface 的命名规则就变了.

对于板载设备,使用 eno 之类的名字.然后我的 VMware 里面就有了个 eno6666666667.

对于在 PCI-Express 上的设备,使用 enp,例如 enp6.同时根据他的位置,插槽来顺延,例如 enp6s0,wlp7s0.

或者使用 mac 地址来命名,比如 enx78e7d1ea46da.

问题就是,我还是喜欢 eth,wlan 这类的名字啊!!!

那么就改回来吧,首先修改 /etc/default/grub.

GRUB_CMDLINE_LINUX="...net.ifnames=0 biosdevname=0"

添加以上两行,然后更新 GRUB2 配置.

upgrade-grub2
grub-mkconfig -o /boot/grub/grub.cfg   #Gentoo/Arch Linux

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.