用了不少年Linux的我在升級Ubuntu 16.04以後居然發現個人以太網卡的名字居然不是eth0,變成了enp3s0,每次想要修改什麼配置,都要先ifconfig查一下網卡名,真是讓我很鬱悶!網絡
去網上搜索一下才知道,此次的Ubuntu 16的更新幅度很大,當屬systemd替換掉了initd來引導系統這個動做給用戶帶來的影響最大,
原來習慣service什麼的來控制系統服務什麼的,如今居然被systemctl這個命令替換了(雖然service依舊可用)。systemd帶來的另
外一個反作用(或者能夠說是優勢)就是網絡接口的命名方式變了:dom
/* * Two character prefixes based on the type of interface: * en — Ethernet * sl — serial line IP (slip) * wl — wlan * ww — wwan * * Type of names: * b<number> — BCMA bus core number * c<bus_id> — CCW bus group name, without leading zeros [s390] * o<index>[d<dev_port>] — on-board device index number * s<slot>[f<function>][d<dev_port>] — hotplug slot index number * x<MAC> — MAC address * [P<domain>]p<bus>s<slot>[f<function>][d<dev_port>] * — PCI geographical location * [P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>] * — USB port number chain */
上面一段是systemd源碼的註釋,意思是:spa
en表明以太網卡code
p3s0表明PCI接口的物理位置爲(3, 0), 其中橫座標表明bus,縱座標表明slotblog
更加詳細的歷史及優缺點能夠參考freedesktop的wiki接口