linux下修改网卡MAC地址的办法

来源:互联网 发布:黑客跟程序员谁厉害 编辑:程序博客网 时间:2024/05/16 07:07

参考:http://www.tangqizhong.org/archives/17.html

方法1:
ifconfig eth0 down
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
ifconfig eht0 up

方法2:
ip link set eth1 down
ip link set eth1 address 00:AA:BB:CC:DD:EE
ip link set eth1 up

00-0E-A6-F7-6A-47

=====  2010/04/06 追加 ===
应该这样子来做
[root@localhost luyao]# /etc/rc.d/network stop
[root@localhost luyao]# ifconfig eth0 hw ether 00:0E:A6:F7:6A:47
[root@localhost luyao]# /etc/rc.d/network start


我使用过了方法1,发现确实能用

原创粉丝点击