The following different naming schemes for network interfaces are now supported by udev natively: Names incorporating Firmware or BIOS provided index numbers for on-board devices (example: eno1) Names incorporating Firmware or BIOS provided PCI Express hotplug slot index numbers (example: ens1) Names incorporating physical location of the connector of the hardware (example: enp2s0) Names incorporating the interface's MAC address (example: enx78e7d1ea46da) The traditional unpredictable kernel-native ethX naming (example: eth0)
上面出自红帽官方文档。 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Consistent_Network_Device_Naming.html 简单翻译下:
- 从主板板载网卡的固件或者BIOS的索引号来命名的,比如eno1
- 从PCI-E的固件或者BIOS的索引号来命名的,比如ens1
- 从硬件控制器的物理地址来命名的,比如enp2s0
- 从物理接口的MAC地址命名的,比如enx78e7d1ea46da
- 传统多变的原生内核命名方式ethX,比如eth0.