安装 Ubuntu 15.10 后,我的许多脚本停止工作,而且我很难记住这个新名称,因为我已经习惯了 ethx 和 wlanx 多年。这种变化有原因吗?我是否必须习惯这一点,或者我可以重命名它并回到旧的 eth0 吗?
$ ifconfig
enp0s25 Link encap:Ethernet HWaddr 77:5a:5e:a6:86:d5
inet addr:192.168.31.239 Bcast:192.168.31.255 Mask:255.255.255.0
inet6 addr: fe80::725a:b6ff:fea6:86d7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4833 errors:1332 dropped:0 overruns:0 frame:666
TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3266446 (3.2 MB) TX bytes:1046654 (1.0 MB)
Interrupt:20 Memory:d3500000-d3520000
Run Code Online (Sandbox Code Playgroud) 类似于https://askubuntu.com/questions/760196/why-is-enps-in-stead-of-eth-whats-the-meaning-of-enps
但是f#代表在enp#s#f#接口名称格式?
Wiki仅说明这一点,未提及f:
Adapters in the specified PCI slot, with slot index number on the adapter enp<PCI slot>s<card index no>,此处类似https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
networking ×2