net.ifnames & biosdevname
linux现在使用sysfs取代过去devfs,/sys目录用于存放动态设备节点,udev透过/sys目录生成/dev目录
biosdevname规则:
- Embedded network interface
em[1...] - PCI card network interface
p[slot]p[ethernet port] p3p4 - Virtual function
p[slot]p[ethernet port] p3p4_1
net.ifnames规则:
- en <==> Ethernet
- wl <==> wireless LAN (wlan)
- ww <==> wireless wide area network (wwan)
- o on-board
- s [f][d] hotplug slot index number
- x MAC address
- ps[f][d] PCI geographical location
- ps[f][u][i] USB port number chain
enp0s3 stands for Ethernet.PCI bus 0 slot 3