-
拷贝intel_mac_tool工具至U盘
-
开机进入系统,插入U盘
-
调出命令行
[hg@localhost ~]$ su
密码:
[root@localhost ~]#
- 查看usb设备
[root@localhost ~]# fdisk -l
磁盘 /dev/sda:1024.2 GB, 1024209543168 字节,2000409264 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
...(省略)
磁盘标识符:0xf1c258c0
设备 Boot Start End Blocks Id System
/dev/sdb1 * 64 62912511 31456224 c W95 FAT32 (LBA)
- usb设备为sdb1;卸载并挂载u盘
[root@localhost ~]# umount /dev/sdb1
[root@localhost ~]# mount /dev/sdb1 /mnt/
- 进入挂载文件夹
[root@localhost ~]# cd /mnt
- ifconfig查看设备名
[root@localhost mnt]# ifconfig
enp0s3f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 56:6c:e0:e2:57:29 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
device interrupt 76
enp2s0f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 20:20:00:00:09: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
device memory 0x46000000-4601ffff
enp2s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
...(省略)
- 使用intel_mac_tool烧录MAC:./intel_mac_tool [设备名] [mac地址]
如烧录4口设备MAC地址(工具会顺序烧录i350四个网口):
[root@localhost mnt]# ./intel_mac_tool_2020 enp2s0f0 20:21:00:00:00:01
0x20: 0x21: 0x00: 0x00: 0x00: 0x01
igb
Set igb MAC Address done!
- reboot重启后再进系统查看是否烧录成功