该用户匿名发帖 发表于 2009-5-10 15:33 只看TA 1楼 |
---|
该用户已被删除 |
修改MAC地址后不能上网的解决方法 首先 卸载网卡模块,模块名可以用lsmod 看到ifconfig eth0 down ifconfig lo down rmmod tg3 再重新加载它 modprobe tg3 修改MAC地址 ifconfig eth0 hw ether xx:xx:xx::xx:xx:xx 看一下MAC地址 是不是 已经改变 ifconfig -a 重新加载网络设置 cd /etc/rc.d ./rc.inet1 ./rc.inet2 ./rc.inetd restart 这样就可以重新使用网卡上网了 其实在redhat里面不用这么麻烦,不用卸载再重新加载网卡模块,但是在执行 ifconfig eth0 hw ether xx:xx:xx::xx:xx:xx 之前 必须 ifconfig eth0 down,否则会 提示设备忙,slackware则没有这个提示,也不需要先ifconfig eth0 down,所以 我怀疑在redhat系统中,rmmod modprobe (或者有其它等效的方法) 是自动执行的。 既然从命令行能够实现,写成脚本,让系统启动时自动加载应该也没有问题。 其实这个方法很笨 ,估计执行了很多重复的没有必要的命令,水平所限,也只能做到这样。 |
0 |
作者的其他主题 |
---|
修改MAC地址后不能上网的解决方法 |