设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Debian Linux
›
debian拨号上网,无法ping通外网
返回列表
查看:
3042
|
回复:
6
debian拨号上网,无法ping通外网
[复制链接]
studylfs
studylfs
当前离线
积分
43
IP卡
狗仔卡
发表于 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 encap
ocal 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 encap
oint-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
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
studylfs
studylfs
当前离线
积分
43
IP卡
狗仔卡
楼主
|
发表于 2010-8-22 20:58:08
|
显示全部楼层
有哪位兄弟知道是什么原因导致的吗?在线等
回复
支持
反对
使用道具
举报
显身卡
ssslxxx
ssslxxx
当前离线
积分
29
IP卡
狗仔卡
发表于 2010-8-22 21:53:54
|
显示全部楼层
是ping域名不通吗?
貌似是DNS的设置不对,不应该是192.168.1.1
你的pppoe拨号设置里,“是否使用 ISP 提供的 DNS 服务器” 最好选yes
不然就要手动设置其他你知道的dns,比如Google的8.8.8.8
回复
支持
反对
使用道具
举报
显身卡
d00m3d
d00m3d
当前离线
积分
14541
IP卡
狗仔卡
发表于 2010-8-23 07:32:45
|
显示全部楼层
同上,貌似你的 DNS 配置不對
另,Default Gateway 設成 192.168.1.1,你的電腦要經過它上網的?
回复
支持
反对
使用道具
举报
显身卡
studylfs
studylfs
当前离线
积分
43
IP卡
狗仔卡
楼主
|
发表于 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呢?
回复
支持
反对
使用道具
举报
显身卡
adam8157
adam8157
当前离线
积分
1035
IP卡
狗仔卡
发表于 2010-8-23 13:28:41
|
显示全部楼层
/etc/ppp/peers/dsl-provider
确保有这两行
defaultroute
replacedefaultroute
回复
支持
反对
使用道具
举报
显身卡
d00m3d
d00m3d
当前离线
积分
14541
IP卡
狗仔卡
发表于 2010-8-23 19:40:34
|
显示全部楼层
樓主不如 traceroute 一下途徑,在 win 下執下 tracert 8.8.8.8 看看結果?
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
小企鹅新闻图书馆
MySQL
服务器架设、应用、维护
shell进阶应用、shell编程
内核与驱动开发
Linux小型、嵌入式系统
Redhat/Fedora/CentOS Linux
BSD 讨论专题
硬件设备 Linux 驱动
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表