现在的位置: 首页 > 综合 > 正文

Ubuntu 下网卡MAC地址修改命令

2014年03月21日 ⁄ 综合 ⁄ 共 249字 ⁄ 字号 评论关闭
方法一:
$ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
$/etc/init.d/networking restart(重启网卡)
方法二:
以上只是暂时的修改硬件地址要永久修改,直接编辑 /etc/network/interfaces 文件,在 iface eth0 inet static 后面添加一行: pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx(要改成的MAC)
$ sudo /etc/init.d/networking restart(重启网卡)

抱歉!评论已关闭.