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
时间: 2024-11-07 04:24:36