参考链接:
https://www.go2aaron.com/blog/index.php/archives/28/
https://superuser.com/questions/1000570/why-eth0-is-renamed-to-enx78e7d1ea46da-after-upgrade
https://tinkerboarding.co.uk/forum/thread-990.html
usb网卡命名
在RK3399 Ubuntu系统上使用usb转百兆网卡ASIX AX88772B,因为udev规则配置的原因,出现了usb网卡名称的困扰,我的usb网卡的名称变成了enx000ec6877201,而不是传统的ethX:
forlinx@forlinx:~$ ifconfig
enx000ec6877201: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:0e:c6:87:72:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9a:0b:9d:ed:7f:96 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 600 (600.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 24
仔细看这个网卡名称是由enx+mac地址拼接而成的。
网络接口名称规则有以下几种:
1. 包含固件/BIOS 的名称为板载设备提供索引号(例如:eno1)
2. 包含固件/BIOS 提供的 PCI Express 热插拔插槽索引号的名称(例如:ens1)
3. 包含硬件连接器物理/地理位置的名称(例如:enp2s0)
4. 包含接口 MAC 地址的名称(例如:enx78e7d1ea46da)
5. 经典的、不可预测的内核原生 ethX 命名(例如:eth0)
查看打印信息,

最低0.47元/天 解锁文章
664





