I assume that the i.nterface you want to change MAC .is eth0, 鲜花
and also,it could be eth1,eth.1,etc.... 健康
1.i.n the scripting way 虚拟主机
run t.he following command as. root 域名
#ifconfig eth0 dow.n 教育
#ifconf.ig eth0 hw ethe.r 5254AB3B0880 .
#ifconf.ig eth0 up 鲜花
NOTE:
If the. interface you changed is which the default gateway. bonding with, .
after ifconfig down&up,the setting of .default gatew.ay would lost,you cou.ld add it manually .
#route add -net 0.0..0..0/0 gw 10.0.0.254 健康
tota.lly there is 4 command lin.e,you can append them to /etc/rc.local, 婚庆
then .this job wil.l be done automaticly. .
2.in the sysconf .way .
edit "/etc/s.ysconfig/network-script/ifcfg.-eth0" 服务器
add a line like. this 建材
MACADDR=52:54:AB:3.B:0.8:80 .
then restart netwok. 健康
#/etc/in.it.d/n.etwork restart 外汇
in this way,t.he chang.ed MAC will be applied at system start up. 健康