1.vim /etc/sysconfig/network-scripts/ifcfg-eth0 

DEVICE=eth1   //更改网卡设备 默认eth0
HWADDR=00:0C:29:3D:5B:E3   //网卡mac地址
TYPE=Ethernet
UUID=c3420d55-d2ae-46dc-b9b9-8fea3c9e3897
ONBOOT=yes     //启动设置
NM_CONTROLLED=yes
BOOTPROTO=dhcp

2./etc/init.d/network restart  //重启网卡设备

  

 

 网卡MAC地址可通过命令查看 

ifconfig eth1

  

 

相关文章:

  • 2021-10-21
  • 2022-12-23
  • 2021-12-30
  • 2021-11-10
  • 2021-05-04
  • 2022-01-01
  • 2021-12-05
  • 2021-09-06
猜你喜欢
  • 2021-06-13
  • 2021-05-25
  • 2021-10-18
  • 2021-06-11
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案