|
|
上次安装时出现过同类问题,这次用新下载的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 Scope ink
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启动级别。 |
|