LinuxSir.cn,穿越时空的Linuxsir!

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

网卡的问题 WARNING: net.eth1 has started, but is inactive

[复制链接]
发表于 2009-9-10 23:20:50 | 显示全部楼层 |阅读模式
每次启动系统时都显示如下信息:

$ cat /var/log/rc.log
rc boot logging started at Fri Sep 11 06:21:16 2009

* Setting system clock using the hardware clock [Local Time]...
[ ok ]
* Autoloaded 0 module(s)
* Checking local filesystems ...
/dev/sda3: clean, 893588/3940352 files, 12362991/15731651 blocks
/dev/sda1: clean, 41/40160 files, 38647/160616 blocks
/dev/sda4: clean, 302/897600 files, 741621/3584503 blocks
[ ok ]
* Remounting root filesystem read/write...
[ ok ]
* Updating /etc/mtab...
[ ok ]
* Mounting local filesystems...
[ ok ]
* Setting hostname to Thinkpad.T41...
[ ok ]
* Configuring kernel parameters...
[ ok ]
* Creating user login records...
[ ok ]
* Cleaning /var/run...
[ ok ]
* Wiping /tmp directory...
[ ok ]
* Setting terminal encoding [UTF-8]...
[ ok ]
* Setting console font [default8x16]...
[ ok ]
* Loading key mappings [us]...
[ ok ]
* Setting keyboard mode [UTF-8]...
[ ok ]
* Bringing up interface lo
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system ip6to4
*   127.0.0.1/8...
[ ok ]
*   Adding routes
*     127.0.0.0/8 via 127.0.0.1...
[ ok ]
* Bringing up interface eth0
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system ip6to4
*   Configuring eth0 for MAC address 00:2d:80:8d:de:24...
[ ok ]
*   null...
[ ok ]
* Bringing up interface eth1
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system ip6to4
*   Configuring eth1 for MAC address 00:0d:41:28:a6:6c...
[ ok ]
*   Starting wpa_supplicant on eth1...
*   Detaching to start `/usr/sbin/wpa_supplicant'...
[ ok ]
*   Starting wpa_cli on eth1...
*   Detaching to start `/usr/bin/wpa_cli'...
[ ok ]
*   Backgrounding ......
[color="Red"]* WARNING: net.eth1 has started, but is inactive
* Mounting USB device filesystem [usbfs]...
[ ok ]
* Activating swap devices...
[ ok ]
* Initializing random number generator...
[ ok ]

rc boot logging stopped at Thu Sep 10 22:21:21 2009


以下是网卡的设置:
$ cat /etc/conf.d/net

# /etc/conf.d/net
modules_eth1="wpa_supplicant"
wpa_supplicant_eth1="-Dwext"
modules_eth1="!plug"
config_eth1="172.16.20.19 netmask 255.255.255.0 broadcast 172.16.20.255"
config_ppp0="ppp"
associate_timeout_ppp0=30
link_ppp0="eth1"
plugins_ppp0="pppoe"
username_ppp0='100033231557'
password_ppp0='dAgtdsff'
pppd_ppp0="updetach
        noauth
        defaultroute
        ipcp-accept-remote
        ipcp-accept-local
        holdoff 3
        lcp-echo-interval 15
        lcp-echo-failure 3"

depend_ppp0(){
        need net.eth1
}
dns_servers_ppp0="202.106.0.20"

config_eth0="null"
#config_eth0="172.16.20.18 netmask 255.255.255.0 broadcast 172.16.20.255"


$cat /etc/wpa_supplicant/wpa_supplicant.conf
#/etc/wpa_supplicant/wpa_supplicant.conf
update_config=1
ctrl_interface_group=0
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
country=zh_CN
network={
        ssid="myhome"
        key_mgmt=WPA-PSK
        proto=WPA2
        pairwise=CCMP
        group=CCMP
        priority=5
psk=18349a4c43190a23ef743f644eaa60201273e3ff5c3c03b6030e9db9d53b360d
}


虽然不影响使用,但看着不爽。有没有人能帮我看一下?eth1是 无线的,eth0是有线的,启动eth0时,eth0也是同样的问题。
 楼主| 发表于 2009-9-11 00:18:18 | 显示全部楼层
另外我将/lib/rc/net/*.sh 全部移到/lib/rc/net/backup/*.sh,除了ifconfig.sh  pppd.sh  wpa_supplicant.sh这三个用到的脚本
daniel@Thinkpad ~ $ ls -R /lib/rc/net
/lib/rc/net:
backup  ifconfig.sh  pppd.sh  wpa_supplicant.sh

/lib/rc/net/backup:
adsl.sh     br2684ctl.sh  dhcpcd.sh    iwconfig.sh    readme.daniel  vlan.sh
apipa.sh    bridge.sh     ifplugd.sh   macchanger.sh  ssidnet.sh
arping.sh   ccwgroup.sh   ip6to4.sh    macnet.sh      system.sh
autoipd.sh  clip.sh       ipppd.sh     netplugd.sh    tuntap.sh
bonding.sh  dhclient.sh   iproute2.sh  pump.sh        udhcpc.sh

则系统起动时将只加载这三个模块
* Bringing up interface lo
*   Caching network module dependencies
*   Loaded modules: wpa_supplicant ifconfig pppd
*   127.0.0.1/8...
[ ok ]
*   Adding routes
*     127.0.0.0/8 via 127.0.0.1...
[ ok ]
* Bringing up interface eth0
*   Loaded modules: wpa_supplicant ifconfig pppd
*   null...
[ ok ]
* Bringing up interface eth1
[color="Red"]*   Loaded modules: wpa_supplicant ifconfig pppd
*   Starting wpa_supplicant on eth1...
*   Detaching to start `/usr/sbin/wpa_supplicant'...
[ ok ]
*   Starting wpa_cli on eth1...
*   Detaching to start `/usr/bin/wpa_cli'...
[ ok ]
*   Backgrounding ......
[color="Red"]* WARNING: net.eth1 has started, but is inactive
但结果还是一样的。
回复 支持 反对

使用道具 举报

发表于 2009-9-11 09:54:46 | 显示全部楼层
你使用了ifplug这个软件了吧?在我这里也是这样提示,不影响使用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-11 10:26:12 | 显示全部楼层
我没有用ifplug这个软件, 在/etc/conf.d/net有一行 modules_eth1="!plug" 我知道不影响使用,但看着不舒服.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-31 23:26:56 | 显示全部楼层
有没人也是这种情况?每次启动系统时都有这个WARNING:

* WARNING: net.eth1 has started, but is inactive
回复 支持 反对

使用道具 举报

发表于 2010-2-1 09:24:05 | 显示全部楼层
ifplugd 和 wpa_supplicant 都会把 网卡 启动放到后台。

这个应该是好的啊,如果不在后台,别的服务必须得等这个获取到 ip 才能继续,那启动不是慢了么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-1 10:51:19 | 显示全部楼层
我没有用ifplugd,是在后台进行ip分配的,系统没有觉得慢,但就是会显示此信息。net.eth1 has started, but is inactive,实际上net.eth1也启动了,上网也没有问题。
回复 支持 反对

使用道具 举报

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

本版积分规则

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