首页 > 系统 > Linux > 正文

Linux下修改MAC地址方法

2020-06-07 13:33:56
字体:
来源:转载
供稿:网友
在Linux下修改MAC地址方法如下:
 
方法1:在文件“/etc/rc.local”中加入
   ifconfig eth0 hw ether 00:D0:59:0D:9B:4C
方法2:在文件“/etc/rc.d/rc.sysinit”加入
   ifconfig eth0 down
   ifconfig eth0 hw ether 00:D0:59:0D:9B:4C
   ifconfig eth0 up
方法3:
   /sbin/ifconfig eth0 down
   /sbin/ifconfig eth0 hw ether 00:D0:59:0D:9B:4C
   /sbin/ifconfig eth0 up
其中,00:D0:59:0D:9B:4C是新的MAC地址。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表