admin
不忘初心,方得始终
级别: 管理员
只看楼主 | | | 0楼 发表于:2018-10-10 14:09

CentOS7 解决网卡乱序的问题

  CentOS7 解决网卡乱序的问题:
   1.#cd /etc/udev/rules.d/
   2.#vim 70-persistent-net.rules:
   修改70-persistent-net.rules的内容:
   SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:1a:f5", KERNEL=="eth*", NAME="eth0"
   修改后:
  SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:1a:eb", KERNEL=="eth*", NAME="eth0"
  SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:1a:f5", KERNEL=="eth*", NAME="eth1"
  SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:1a:ff", KERNEL=="eth*", NAME="eth2"
  3.在网卡的配置文件里面加入HWADDR="52:54:00:F0:F9:1C"。
  4.重启服务器:
  #reboot