如果临时修改mac,使用ifconfig eth0 hw ether xxxx 肯定可以临时修改没问题当我想永久修改mac,需要修改/etc/sysconfig/network-script/ifcfg-eth0文件里
将HWADDR = XXX 修改为MACADDR= xxx,修改之后 service network restart起不来,会报错误如下
Shutting down interface eth0: Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active [FAILED]