Answers:
这是udevd现在为以太网设备分配名称的方式的变化。现在,您的设备使用“可预测的接口名称”,该名称基于(并引用源):
- 包含固件/ BIOS的名称为板载设备提供了索引号(例如:eno1)
- 包含固件/ BIOS的名称提供的PCI Express热插拔插槽索引号(例如:ens1)
- 包含硬件连接器的物理/地理位置的名称(例如:enp2s0)
- 包含接口的MAC地址的名称(例如:enx78e7d1ea46da)
- 经典的,不可预测的内核原生ethX命名(例如:eth0)
在系统化的freedesktop.org页中记录了此更改的原因以及禁用此更改的方法:
ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
或者,如果您使用旧版本:
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
The classic naming scheme for network interfaces applied by the kernel is to simply assign names beginning with "eth" to all interfaces as they are probed by the drivers. As the driver probing is generally not predictable for modern technology this means that as soon as multiple network interfaces are available the assignment of the names is generally not fixed anymore and it might very well happen that "eth0" on one boot ends up being "eth1" on the next. This can have serious security implications...
ifconfig
不推荐使用。想想移动到ip
从iproute2
快。