LinuxSir.cn,穿越时空的Linuxsir!

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

eth1 及ppp0 has started, but is inactive的问题请教

[复制链接]
发表于 2009-7-15 23:12:15 | 显示全部楼层 |阅读模式
每次启动系统时都出现 eth1 has started, but is inactive 还有ppp0 has started, but is inactive的提示,但eth1(wifi连接)及ppp0(adsl)都成功连接,上网等没有问题。不影响正常使用。但这个提示是不是说明还是有什么问题呢?
cat /etc/conf.d/net
## /etc/conf.d/net
modules=( "wpa_supplicant" )
wpa_supllicant_eth1="-Dipw"
config_eth1=( "172.16.20.19 netmask 255.255.255.0 broadcast 172.16.20.255" )

config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0='10001393xxxx'
password_ppp0='xxxxxxxx'
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" )

daniel@Thinkpad_T41 /etc/conf.d $ sudo rc-update show
...
             net.eth1 |                                           boot        
             net.ppp0 | desktop                                               
               net.lo |                                           boot  
...

用起来没有什么问题,看到这个提示总是心里很不爽,一直不知道如何解决。
发表于 2009-7-15 23:19:51 | 显示全部楼层
很不明白你的物理连接啊。eth1如果是wifi的话,怎么和ppoe有关系了?ppoe用的网卡应该是有线的eth0网卡吧?
回复 支持 反对

使用道具 举报

发表于 2009-7-16 13:53:06 | 显示全部楼层
手册里介绍了 ifplugd ,但这玩意不好用,你是不是装了一个?
如果装了赶紧卸掉吧,你遇到的正是其典型"症状"。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 20:44:45 | 显示全部楼层
eth0是有线的网卡,我没有启动. eth1是WIFI,无线方式接在家里的ap上,ap通过集线器接的是adsl modem, ppp0(adsl)是通过无线的eth1接到adsl modem再进行拨号的.
物理连接是没有问题的,如果不起动ppp0时,eth1起动时同样会显示eth1 has started, but is inactive ,但用起来没有任何问题。就是出现这个提示。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 20:49:13 | 显示全部楼层
我没有安装过ifplugd
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 21:07:39 | 显示全部楼层
daniel@Thinkpad_T41 ~ $ sudo /etc/init.d/net.ppp0 restart
* Stopping sshd...
/usr/sbin/sshd'                                                           [ ok ]
* Stopping apache2...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName                                            [ ok ]
* Bringing down interface ppp0
*   Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd br2684ctl autoipd ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap bonding arping apipa
*   Stopping pppd on ppp0
/usr/sbin/pppd'                                                           [ ok ]
*   Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
* Bringing up interface ppp0
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system dhcpcd ip6to4
*   Starting pppd in ppp0...                                              [ ok ]
*   received address 61.49.174.27/32
* WARNING: net.ppp0 has started, but is inactive
* WARNING: apache2 is scheduled to started when net.ppp0 has started
* WARNING: sshd is scheduled to started when net.ppp0 has started
回复 支持 反对

使用道具 举报

发表于 2009-7-16 21:34:34 | 显示全部楼层
嗯,是的。正是ifplugd
在/etc/conf.d/net 文件里面加上
modules_eth0=( "!plug" )

用wicd似乎更方便解决无线和有线的切换。。。 不过不用命令行让自己觉得面对着黑盒,似乎也不爽,怕万一啥时不灵了,不知道该如何解决。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 23:35:59 | 显示全部楼层
Post by linyunxian;2006896
嗯,是的。正是ifplugd
在/etc/conf.d/net 文件里面加上
modules_eth0=( "!plug" )

用wicd似乎更方便解决无线和有线的切换。。。 不过不用命令行让自己觉得面对着黑盒,似乎也不爽,怕万一啥时不灵了,不知道该如何解决。


还是不行!

daniel@Thinkpad_T41 ~ $ grep '!plug' /etc/conf.d/net
modules_eth1=( "!plug" )
modules_eth0=( "!plug" )
daniel@Thinkpad_T41 ~ $ sudo /etc/init.d/net.eth1 restart
* WARNING: you are stopping a boot service
* Stopping sshd...
/usr/sbin/sshd'                                                           [ ok ]
* Stopping mldonkey -- please wait...
/usr/bin/mlnet'
/usr/bin/mlnet'
/usr/bin/mlnet'                                                           [ ok ]
* Stopping apache2...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName                                            [ ok ]
* Bringing down interface ppp0
*   Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd br2684ctl autoipd ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap bonding arping apipa
*   Stopping pppd on ppp0
/usr/sbin/pppd'                                                           [ ok ]
*   Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
* Bringing down interface eth1
*   Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd br2684ctl autoipd ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap bonding arping apipa
*   Removing addresses
*     172.16.20.19/24
*     Stopping wpa_cli on eth1...
*     Will stop /usr/bin/wpa_cli
*     Will stop PID in pidfile `/var/run/wpa_cli-eth1.pid'
*     Will stop processes of `/usr/bin/wpa_cli'
*     Sending signal 15 to PID 2081...                                    [ ok ]
*     Stopping wpa_supplicant on eth1...
*     Will stop /usr/sbin/wpa_supplicant
*     Will stop PID in pidfile `/var/run/wpa_supplicant-eth1.pid'
*     Will stop processes of `/usr/sbin/wpa_supplicant'
*     Sending signal 15 to PID 2074...                                    [ ok ]
* Bringing up interface eth1
*   Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system dhcpcd ip6to4
*   Configuring eth1 for MAC address 00:0c:f1:28:f6: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
* WARNING: apache2 is scheduled to started when net.eth1 has started
* WARNING: mldonkey is scheduled to started when net.eth1 has started
* WARNING: sshd is scheduled to started when net.eth1 has started
* WARNING: net.ppp0 is scheduled to started when net.eth1 has started
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 23:39:41 | 显示全部楼层
另外,我在/etc/modprobe.d/blacklist.conf也将ifplugd加入到了blacklist, 但结果没有任何变化。
daniel@Thinkpad_T41 /etc/modprobe.d $ grep blacklist /etc/modprobe.d/blacklist.conf
# in the format "blacklist <name of module>"
blacklist evbug
blacklist eth1394
#blacklist pcspkr
#blacklist usbmouse
#blacklist usbkbd
blacklist ifplugd
blacklist dhcpcd
blacklist udhcpc
blacklist dhclient
blacklist netplugd
blacklist ccwgroup
回复 支持 反对

使用道具 举报

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

本版积分规则

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