LinuxSir.cn,穿越时空的Linuxsir!

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

[solved]请教:为何升级openrc后无法上网了?

[复制链接]
发表于 2008-5-2 09:24:11 | 显示全部楼层 |阅读模式
上次安装时出现过同类问题,这次用新下载的beta2重新安装的,将/和/boot所在分区重新格式化。

前期安装一切正常,连Gnome都安装了。

然后,我执行了一下:emerge -uDN word,更新系统时提示安装了openrc。用dispatch-conf更新配置文件并修改文件。
重启后,就无法上网了:

~ # ping -c 3 www.163.com
ping: unknown host www.163.com

DNS已经正常设置了:
~ # cat /etc/resolv.conf
nameserver 202.102.128.68
nameserver 202.102.134.68

我是直接在net文件中配置的pppoe,net文件如下(用户名和密码做马赛克处理):
~ # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
#modules="dhcpcd"
config_eth0="null"
config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
username_ppp0='la******'
password_ppp0='******'

pppd_ppp0="
        noauth
        defaultroute
        usepeerdns
        holdoff 3
        child-timeout 60
        lcp-echo-interval 15
        lcp-echo-failure 3
        noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
"

depend_ppp0(){
        need net.eth0
}


但是重启net.ppp0服务却显示如下:
~ # /etc/init.d/net.ppp0 restart
* Bringing down interface ppp0
*   Stopping pppd on ppp0                                                                                                               [ ok ]
*   Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
* Bringing up interface ppp0
*   Starting pppd in ppp0 ...                                                                                                           [ ok ]
*   Backgrounding ...
* WARNING: net.ppp0 has started, but is inactive

貌似找不到网卡?


但用ifconfig命令查看:
~ # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:e0:4d:06:9c:ff  
          inet6 addr: fe80::2e0:4dff:fe06:9cff/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:335 errors:0 dropped:0 overruns:0 frame:0
          TX packets:391 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25620 (25.0 KiB)  TX bytes:25414 (24.8 KiB)
          Interrupt:223

而且用lspci命令也可以看到类似nvidia ethernet字样。

在/etc/init.d/下可以看到net.lo的两个链接文件net.eth0和net.ppp0,但是有两个链接丢失:/etc/init.d/depscan.sh->depscan.sh -> ../../sbin/depscan.sh

runscript.sh -> /sbin/runscript.sh

这应该是什么地方出了问题呢,请高手指教!谢谢。
PS:
1、网卡是Nvidia 6100上集成的nVIDIA MCP61 - LAN Controller (PHY: Realtek RTL8201CL/CP)        PCI。
已在配置内核时built-in了。
2、dhcpcd已安装。
3、已阅读过迁移指南。在gentoo.org的论坛上只搜索到一个相同的例子,但只是意大利版的,而且没有答案。
4、net.eth0和net.ppp0都已经被添加到default启动级别。
发表于 2008-5-2 09:36:33 | 显示全部楼层
posting error,sorry....
回复 支持 反对

使用道具 举报

发表于 2008-5-2 09:40:46 | 显示全部楼层
My "/etc/conf.d/net" file,might help:
config_eth0="null"
config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
username_ppp0='***'
password_ppp0='***'
pppd_ppp0="
       updetach
       debug
       noauth
       defaultroute
       usepeerdns
       ipcp-accept-remote
       ipcp-accept-local
       lcp-echo-interval 15
       lcp-echo-failure 3
       mtu 1492
      mru 1492
       default-asyncmap"


Sometimes I shows that ppp is not active but It works just fine.I have no idea of this strange issue.

Maybe you should try pinging after your running "/etc/init.d/net.ppp0 restart"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-2 09:48:54 | 显示全部楼层
谢谢回复,我试一下。我原来试过在运行该命令后ping,一样的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-2 10:06:01 | 显示全部楼层
Thanks. It works, though display some error message:

~ # /etc/init.d/net.ppp0 restart
* Caching service dependencies ...                                       [ ok ]
* Bringing down interface ppp0
*   Stopping pppd on ppp0                                                [ ok ]
*   Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
* Bringing up interface ppp0
*   Starting pppd in ppp0 ...                                            [ ok ]
*   received address 218.56.218.39/32
* WARNING: net.ppp0 not under our control, aborting
回复 支持 反对

使用道具 举报

发表于 2008-5-2 10:43:56 | 显示全部楼层
I have the same message though,but working-fine is fine.
回复 支持 反对

使用道具 举报

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

本版积分规则

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