LinuxSir.cn,穿越时空的Linuxsir!

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

rh9中,绑定mac地址,无法上网了。

[复制链接]
发表于 2003-4-11 22:02:23 | 显示全部楼层 |阅读模式
环境:rh9.0、局域网内固定IP。

我是照坛子里得办法,在/etc/rc.d/rc.local中加入
ifconfig eth0 down
ifconfig eth0 hw ether 123456789ac
ifconfig eth0 up

重启后,上不了网。把以上内容删除掉,又能上网。
发表于 2003-4-12 12:03:20 | 显示全部楼层
试试这个办法:
1.建立/etc/ether文件,其中包含正确的IP/MAC对应关系,格式如下:
192.168.2.32 08:00:4E:B0:24:47
然后在/etc/rc.d/rc.local最后添加:
arp -f

2.或者在/etc/rc.d/rc.local最后添加:
arp -i eth0 -s xxx.xxx.xxx.xxx(IP) xx.xx.xx.xx.xx(MAC)
发表于 2003-4-12 16:43:57 | 显示全部楼层
123456789ac?

windows才是那样,, 中间用:分开,,
 楼主| 发表于 2003-4-12 17:41:42 | 显示全部楼层
谢谢楼上的两个兄弟。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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