LinuxSir.cn,穿越时空的Linuxsir!

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

多网卡该如何设置?

[复制链接]
发表于 2009-4-20 17:18:15 | 显示全部楼层 |阅读模式
T61上的无线和有线网卡都已经rc-update add default了,另外装了ifplugd管理,/etc/conf.net/net文件:
config_eth0="192.168.1.12 netmask 255.255.255.0 brd 192.168.1.255"
routes_eth0="default via 192.168.1.1"

ifplugd_eth0="..."
ifplugd_eth0="--api-mode=wlan"
plug_timeout="10"

modules="wpa_supplicant"
iwconfig_wlan0="mode managed"
wpa_supplicant_wlan0="-Dwext"
wpa_timeout_wlan0=60
config_wlan0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255"
routes_wlan0="default via 192.168.1.1"

但是系统启动的时候出现提示:
* Bringing up interface eth0
*   Starting ifplugd on eth0...
[ ok ]
*     Backgrounding ...
* WARNING: net.eth0 has started, but is inactive
* Bringing up interface wlan0
*   Starting wpa_supplicant on wlan0...
[ ok ]
*   Starting wpa_cli on wlan0...
[ ok ]
*   Backgrounding ......
* WARNING: net.wlan0 has started, but is inactive
* WARNING: netmount is scheduled to start when net.eth0, net.wlan0 has started

有些程序就没法启动了,比如sshd和mldonkey:
* WARNING: sshd is scheduled to start when net.eth0 has started

* WARNING: mldonkey is scheduled to start when net.eth0 has started

请问还有什么地方可以设置的吗?
发表于 2009-4-20 18:03:56 | 显示全部楼层
要么修改init脚本,去掉对net服务的依赖
要么在/etc/conf.d/local文件中,start里面,手动启动上面2个服务
  1. /etc/init.d/sshd --nodeps start
  2. /etc/init.d/mldonkey --nodeps start
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-20 18:15:25 | 显示全部楼层
Post by ZDN;1977038
要么修改init脚本,去掉对net服务的依赖
要么在/etc/conf.d/local文件中,start里面,手动启动上面2个服务
  1. /etc/init.d/sshd --nodeps start
  2. /etc/init.d/mldonkey --nodeps start
复制代码
netmount也这么处理?感觉有点怪。还是没明白net.eth0,net.wlan0 inactive是什么原因?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-20 21:20:52 | 显示全部楼层
怎么其他用本本的同学没有碰到这个问题吗?
回复 支持 反对

使用道具 举报

发表于 2009-7-17 21:52:09 | 显示全部楼层
楼主的问题解决了吗?我的网卡也是inactive的状态,但depend on 网卡的服务是可以自动起动的。就是这个inactive不知道应如何解决。
回复 支持 反对

使用道具 举报

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

本版积分规则

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