为什么我的界面现在是wlp2s0而不是wlan0?

一切正常我只想知道为什么我的界面默认改为wlp2s0而不是通常的wlan0

引入了一种新的命名方案,以解决旧的(eth0,wlan0)命名标准引起的问题。

以下是该概念的简短介绍和解释: http : //www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

基本上,前两个字母描述了接口的类型。 ‘wl’代表wlan,’en’代表以太网。 以下代码通常是设备在您的计算机中的物理位置的描述 – p2可能是PCI总线2,s0可能是插槽0。

正如kyodake指出的那样,当Ubuntu迁移到systemd时引入了这个新标准。

为什么带有systemd的Ubuntu已经将许多不同的命名策略的原生支持添加到systemd / udevd本身,并且使得类似于biosdevname的方案是默认的。 现在,udev本身支持以下不同的网络接口命名方案:

(1) Names incorporating Firmware/BIOS provided index numbers for on-board devices (example: eno1) (2) Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example: ens1) (3) Names incorporating physical/geographical location of the connector of the hardware (example: enp2s0) (4) Names incorporating the interfaces's MAC address (example: enx78e7d1ea46da) (5) Classic, unpredictable kernel-native ethX naming (example: eth0) 

默认情况下,systemd现在将命名遵循策略的接口:

  (1) if that information from the firmware is applicable and available, falling back to: (2) if that information from the firmware is applicable and available, falling back to: (3) if applicable, falling back to: (5) in all other cases. Policy (4) is not used by default, but is available if the user chooses so.