LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 672|回复: 2

Linux下修改MAC地址的方法

[复制链接]
发表于 2004-10-17 15:19:46 | 显示全部楼层 |阅读模式
需要用 #ifconfig eth0 down 先把网卡禁用
再用ifconfig eth0 hw ether 1234567890ab
这样就可以改成功了.要想永久改就这样在/etc/rc.d/rc.local里加上
ifconfig eth0 down
ifconfig eth0 hw ether 1234567890ab
ifconfig eth0 up
发表于 2004-10-18 01:38:17 | 显示全部楼层
加到/etc/rc.sysinit
 楼主| 发表于 2004-10-18 07:33:52 | 显示全部楼层
对,加到/etc/rc.sysinit是优先执行的,否则后面网络服务的启动可能有问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表