為什麼我的介面現在是 wlp2s0 而不是 wlan0?

為什麼我的介面現在是 wlp2s0 而不是 wlan0?

一切正常我只是想知道為什麼我的介面預設會更改為 wlp2s0 而不是通常的 wlan0

答案1

引入了新的命名方案,以解決舊的(eth0、wlan0)命名標準所引起的問題。

以下是對該概念的簡短介紹和解釋: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

基本上,前兩個字母描述了介面的類型。 「wl」代表無線區域網,「en」代表乙太網路。以下程式碼通常是對裝置在電腦中的實體位置的描述 - 可能是 p2PCI總線 2,s0 可能是插槽 0。

正如 kyodake 所指出的那樣,這個新標準是在 Ubuntu 遷移到系統

答案2

為什麼帶有 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. 

相關內容