在 /etc/udev/rules.d中添加文件70-persistent-net.rules,文件中输入下列内容:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:f8:ba:ec",NAME="eth0"。

其中ADDR{address}是对应网卡的mac地址,eth0是修改后的网卡名称。

相关文章:

  • 2021-12-06
  • 2021-05-13
  • 2021-10-03
  • 2022-01-12
  • 2021-07-04
  • 2021-05-30
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-02-02
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案