Answers:
操作系统应在文件中保留物理NIC详细信息列表:
/etc/udev/rules.d/70-persistent-net.rules
这是我的一个例子:
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:23:54:95:74:e5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
注意到“ ATTR {地址} ==“部分?
您可以使用arp查找MAC地址
要查找制造商MAC,IEEE注册机构会保留一个属于其的品牌名称列表,并列出MAC地址,MAC地址中的前六个是品牌名称,其后是类型和序列号