linux修改mac地址

先禁用网卡ifconfig eth0 down
再用ifconfig eth0 hw ether 新地址
这样就可以了
要想永久修改的话,在/etc/rc.d/rc.local里加上下面三句(/etc/init.d/network里面也可以)
ifconfig eth0 down
ifconfig eth0 hw ether 新地址
ifconfig eth0 up
posted @ 2014-04-12 18:24  喵尾景虎  阅读(502)  评论(0编辑  收藏  举报