在/etc/rc.d/rc.local里加上这三句
ifconfig eth0 down
ifconfig eth0 hw ether 1234567890ab
ifconfig eth0 up
这样重新reboot后就不怕MAC复原了.
或者:
在/etc/sysconfig/network-scripts/ifcfg-eth0中加入:
MACADDR=00:AA:BB:CCD:EE

就行了
直接改/etc/init.d,第87行左右:
# bring up all other interfaces configured to come up at boot time
# XXX: change eth0 MAC address by
href="mailto:feiyunw@yahoo.com">;
feiyunw@yahoo.com action $"Modifying interface eth0's MAC: " ifconfig eth0 hw ether
00:50:ba:e8:6a:8d
for i in $interfaces; do
这样REDHAT起动时还会显示"Modifying .... [OK]"。
不过关机时ifdown会显示"Device eth0 has different MAC address than expected,