LinuxSir.cn,穿越时空的Linuxsir!

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

debian拨号上网,无法ping通外网

[复制链接]
发表于 2010-8-22 12:29:49 | 显示全部楼层 |阅读模式
/etc/resolv.conf设置为nameserver 192.168.1.1

eth0      Link encap:Ethernet  HWaddr 00:1f:e2:1a:36:fc  
          inet addr:192.168.1.74  Bcast:192.168.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3311 errors:0 dropped:0 overruns:0 frame:0
          TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:248461 (242.6 KiB)  TX bytes:7003 (6.8 KiB)
          Memory:fe000000-fe020000

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encapoint-to-Point Protocol  
          inet addr:10.0.0.128  P-t-P:10.0.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3 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:54 (54.0 B)  TX bytes:61 (61.0 B)



Windows下的网络配置情况


Windows IP Configuration





Ethernet adapter 无线网络连接:



        Media State . . . . . . . . . . . : Media disconnected



Ethernet adapter 本地连接:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 192.168.1.74

        Subnet Mask . . . . . . . . . . . : 255.255.0.0

        Default Gateway . . . . . . . . . : 192.168.1.1



PPP adapter 宽带连接:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 10.0.0.128

        Subnet Mask . . . . . . . . . . . : 255.255.255.255

        Default Gateway . . . . . . . . . : 10.0.0.128
 楼主| 发表于 2010-8-22 20:58:08 | 显示全部楼层
有哪位兄弟知道是什么原因导致的吗?在线等
回复 支持 反对

使用道具 举报

发表于 2010-8-22 21:53:54 | 显示全部楼层
是ping域名不通吗?
貌似是DNS的设置不对,不应该是192.168.1.1
你的pppoe拨号设置里,“是否使用 ISP 提供的 DNS 服务器” 最好选yes
不然就要手动设置其他你知道的dns,比如Google的8.8.8.8
回复 支持 反对

使用道具 举报

发表于 2010-8-23 07:32:45 | 显示全部楼层
同上,貌似你的 DNS 配置不對

另,Default Gateway 設成 192.168.1.1,你的電腦要經過它上網的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-23 12:29:07 | 显示全部楼层
dns已经重新设置为运营商的dns,在windows下ping dns很快,30几ms,但是debian还是无法ping通外网

另外,在windows下ipconfig查看,有两个gateway,一个是192.168.1.1,一个是10.0.0.128,我应该设置哪个为debian的gateway呢?
回复 支持 反对

使用道具 举报

发表于 2010-8-23 13:28:41 | 显示全部楼层
/etc/ppp/peers/dsl-provider

确保有这两行
defaultroute
replacedefaultroute
回复 支持 反对

使用道具 举报

发表于 2010-8-23 19:40:34 | 显示全部楼层
樓主不如 traceroute 一下途徑,在 win 下執下 tracert 8.8.8.8 看看結果?
回复 支持 反对

使用道具 举报

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

本版积分规则

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