免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3067 | 回复: 2
打印 上一主题 下一主题

[网络管理] adsl上网不成功,找不到ppp0 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-13 01:43 |只看该作者 |倒序浏览
用gentoo两个月了,以前用vmware在xp上跑,用的是局域网,设置好ip, netmask,route后上网一直没有问题,最近想直接在linux下用pppoe连接,但一直不成功,google了两天都没有找到解决方法。
以下是一一些信息.
root ~#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_eth0=( "ifconfig" )
# Here is setup for LAN
#config_eth0=( "172.16.20.20 netmask 255.255.255.0 broadcast 172.16.20.255" )
#routes_eth0=( "default via 172.16.20.10" )
# Here is setup for PPPoE/ADSL
config_eth0=( "null" )
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )
#username and password already double checked!
username_ppp0='234575438754'
password_ppp0='dfsg353e'
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
}

root ~#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0c:29:55:ed:31  
          inet addr:172.16.20.20  Bcast:172.16.20.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe55:ed31/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15146 (14.7 KiB)  TX bytes:11224 (10.9 KiB)
          Interrupt:18 Base address:0x2000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)

root ~#ls /etc/init.d/net* -l
lrwxrwxrwx 1 root root     6 2009-04-30 06:27 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x 1 root root 15179 2009-05-04 07:51 /etc/init.d/net.lo
-rwxr-xr-x 1 root root  2074 2009-05-04 07:51 /etc/init.d/netmount
lrwxrwxrwx 1 root root     6 2009-05-13 00:37 /etc/init.d/net.ppp0 -> net.lo

root ~#/etc/init.d/net.ppp0 start
* Bringing up interface ppp0
*   Starting pppd in ppp0... [ ok ]
*   Backgrounding ...
*   WARNING: net.ppp0 has started, but is inactive

root ~#/etc/init.d/net.ppp0 stop
* 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


请大家帮帮忙看是什么问题。非常感谢!!

[ 本帖最后由 liulihua 于 2009-5-13 08:39 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-13 01:52 |只看该作者
ifconfig ppp0 同样是这个错误信息。
ppp0: error fetching interface information: Device not found

论坛徽章:
0
3 [报告]
发表于 2009-05-13 10:04 |只看该作者
在网上就找到了一条相关信息;
http://www.linuxsir.org/bbs/lastpostinthread328122.html
改完了,做故障还是一样的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP