为什么拨号成功却无法上网

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
ttand
帖子: 1745
注册时间: 2005-08-22 14:05
来自: 离开北京

为什么拨号成功却无法上网

#1

帖子 ttand » 2008-04-20 16:44

用archlinux 的 rp-pppoe 工具拨号

pppoe-setup

dns写 server 或者 opendns的地址 或者其他的DNS都试过
用户名密码都填写多次,ubuntu的pppoeconf 可以成功上网
最后的firewall 选0 y保存

然后是
/etc/rc.d/adsl start
最后提示Done

ifconfig 也找到ppp0 和ppp0的ip

可以ping 到pppoesever 提供的dns服务器

但是没法上网 ping 域名 解析不了 比如ping baidu.com 在ubuntu下可以ping到
ping baidu的www ip 也不行

我还有那一步没做或者做错了

是否是ppp0连接的问题 ??
错过好多好贴,没占到广告位后悔啊
头像
ttand
帖子: 1745
注册时间: 2005-08-22 14:05
来自: 离开北京

#2

帖子 ttand » 2008-04-20 19:19

[ttand@conner ~]$ sudo /etc/rc.d/adsl restart
口令:
:: Stopping ADSL Connection [DONE]
:: Starting ADSL Connection [DONE]
[ttand@conner ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:29:F1:82:F6
inet addr:10.5.23.140 Bcast:10.5.23.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2500 errors:0 dropped:0 overruns:0 frame:0
TX packets:1903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:217949 (212.8 Kb) TX bytes:140082 (136.7 Kb)
Interrupt:17 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8712 (8.5 Kb) TX bytes:8712 (8.5 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:58.20.168.75 P-t-P:58.20.168.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2563 (2.5 Kb) TX bytes:61 (61.0 b)

[ttand@conner ~]$

这样了还有什么问题
现在ping 网外的ip都不行啊
错过好多好贴,没占到广告位后悔啊
头像
ttand
帖子: 1745
注册时间: 2005-08-22 14:05
来自: 离开北京

#3

帖子 ttand » 2008-04-20 19:45

nnd
默认路由路径问题。。。。。

需要用route add default指定
错过好多好贴,没占到广告位后悔啊
回复