在Linux中修改MAC地址

作者: tioced 2014-03-26 10:26:05
有三种方法可以在Linux中修改MAC地址。

一、在/etc/rc.local文件中加入
ifconfig eth0 hw ether 00:D0:59:0D:9B:4C

二、在/etc/rc.d/rc.sysinit文件加入
ifconfig eth0 down
ifconfig eth0 hw ether 00:D0:59:0D:9B:4C
ifconfig eth0 up

三、/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether 00:D0:59:0D:9B:4C
/sbin/ifconfig eth0 up

这三种方法统一新MAC地址是00:D0:59:0D:9B:4C。

相关资讯