大家帮我看看为什么明明拨号了却PING不能DNS服务器?

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

大家帮我看看为什么明明拨号了却PING不能DNS服务器?

#1

帖子 liwangli » 2008-03-19 21:58

如题,装并配置好了pppoeconf,用pon dsl-provider连后,用ifconfig查看一切正常,拨号成功。可以ping通网关,但不能ping通DNS服务器。/etc/network/interface里的网络信息和/etc/resolv.conf里的DNS服务器都设置正确。。。
此网络略有特殊,就是此机是隔着路由器向ADSL猫拨号的(有特殊原因要这么做。。。此机插在路由器LAN口),路由器已经关了DHCP。另一台装winxp的机器同样插在路由器的另一LAN口,但却拨号成功并可以PING通DNS服务器。装winxp机器上还有一个ubuntu系统,用pon一样可以拨号成功并PING通DNS,想不出为什么只有这台机器无法隔着路由拨号?
相关的东西列在下面了,大家帮忙看看,还需要什么我再加上,谢谢

ifconfig信息如下:

eth0 Link encap:Ethernet HWaddr 00:10:75:01:93:62
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2785 errors:0 dropped:0 overruns:0 frame:0
TX packets:1935 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:251273 (245.3 KiB) TX bytes:219291 (214.1 KiB)
Interrupt:4 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST 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:Point-to-Point Protocol
inet addr:221.201.12.198 P-t-P:221.201.12.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1436 (1.4 KiB) TX bytes:54 (54.0 b)

路由信息如下:

(none):/etc# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
221.201.12.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

PING DNS服务器失败信息如下:

(none):/etc# ping 202.96.69.38
PING 202.96.69.38 (202.96.69.38) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
From 192.168.0.1 icmp_seq=4 Destination Host Unreachable
From 192.168.0.1 icmp_seq=5 Destination Host Unreachable
From 192.168.0.1 icmp_seq=6 Destination Host Unreachable
From 192.168.0.1 icmp_seq=7 Destination Host Unreachable

--- 202.96.69.38 ping statistics ---
7 packets transmitted, 0 received, +7 errors, 100% packet loss, time 6008ms

PING网关成功信息如下:

(none):/etc# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.461 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.389 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.390 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=0.390 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=0.390 ms

--- 192.168.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 0.389/0.404/0.461/0.028 ms
头像
thefour
帖子: 429
注册时间: 2008-03-05 12:31
来自: 示爱须唱山歌

#2

帖子 thefour » 2008-03-20 2:14

谁让你配置pppoeconf的?
既然是静态IP的
就按XP下的IP设置就行了
六十学裁缝,晚否......
tsunli
帖子: 66
注册时间: 2005-05-25 0:10

路由不对

#3

帖子 tsunli » 2008-03-20 8:36

route add default gw 221.201.12.1;
在ppoeconf 中设置根据isp提供的路由改变本地路由设置.
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

#4

帖子 liwangli » 2008-03-20 12:27

thefour 写了:谁让你配置pppoeconf的?
既然是静态IP的
就按XP下的IP设置就行了
已经设了静态IP了啊,就是192.168.0。8那个
头像
追疯少年
帖子: 950
注册时间: 2008-03-13 23:37
联系:

#5

帖子 追疯少年 » 2008-03-24 6:49

晕了,不懂
回复