LinuxSir.cn,穿越时空的Linuxsir!

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

网络配置的问题

[复制链接]
发表于 2010-1-17 20:05:43 | 显示全部楼层 |阅读模式
我用NetworkManager管理网络,已经可以上网,但是开机的时候还是要ifplugd服务,总要浪费一点时间,之所以安装ifplugd是因为如果我在/etc/conf.d/net中什么也不写会默认dhcp在没有dhcp网络的时候极慢
而我的笔记本经常换网络环境,所以曲线救国安了ifplugd,事实上我也不用ifplugd上网

请问我像我这个情况应该如何配置/etc/conf.d/net文件?

谢谢
 楼主| 发表于 2010-1-17 23:35:16 | 显示全部楼层
解决方案:
Baselayout is Gentoo's system initialization system when Gentoo boots. If all goes well installing NetworkManager then disable any baselayout networking scripts.

Remove your current network devices from start up. If you don't, you will have dueling dhcp clients fighting over your interfaces and eating up CPU:

rc-update del net.eth0
rc-update del net.ath0
...
net.lo is needed for for a local loopback interface, leave this be.
If you are using udev, you will also need to block it from attempting to automatically initialize your network interfaces. This can be done by modifying the /etc/conf.d/rc file (or /etc/rc.conf on OpenRC). For example, to block eth0 from loading, add this:

File: /etc/conf.d/rc
RC_PLUG_SERVICES="!net.eth0"
The following line should block all Ethernet and wireless interfaces:

File: /etc/conf.d/rc
RC_PLUG_SERVICES="!net.eth* !net.wlan*"

来自http://www.gentoo-wiki.info/HOWTO_NetworkManager
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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