QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 814|回复: 2

rhlinux9.0下用ADSL上网的问题

[复制链接]
发表于 2004-5-15 23:07:38 | 显示全部楼层 |阅读模式
rhlinux9.0下用ADSL上网
可以联上去
但是却什么都ping不通
以下是在rhlinux9.0 ping的结果
[root@localhost root]# adsl-status
Note: You have enabled demand-connection; adsl-status may be inaccurate.
adsl-status: Link is up and running on interface ppp0
ppp0 Link encapoint-to-Point Protocol
inet addr:61.183.80.228 P-t-P:202.103.26.153 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:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:30 (30.0 b) TX bytes:30 (30.0 b)

[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:5E:1D:4A
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1730 errors:0 dropped:0 overruns:0 frame:0
TX packets:733 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1179932 (1.1 Mb) TX bytes:108539 (105.9 Kb)
Interrupt:11 Base address:0x9000

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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1036 (1.0 Kb) TX bytes:1036 (1.0 Kb)

ppp0 Link encapoint-to-Point Protocol
inet addr:61.183.80.228 P-t-P:202.103.26.153 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4 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:78 (78.0 b) TX bytes:30 (30.0 b)

[root@localhost root]# more /etc/resolv.conf
# MADE-BY-RP-PPPOE
search localdomain
nameserver 202.103.24.68
nameserver 202.103.0.117
[root@localhost root]# ping 202.103.26.153
PING 202.103.26.153 (202.103.26.153) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
64 bytes from 202.103.26.153: icmp_seq=5 ttl=127 time=12.5 ms
64 bytes from 202.103.26.153: icmp_seq=6 ttl=127 time=13.6 ms
64 bytes from 202.103.26.153: icmp_seq=7 ttl=127 time=10.8 ms
64 bytes from 202.103.26.153: icmp_seq=8 ttl=127 time=10.8 ms

--- 202.103.26.153 ping statistics ---
8 packets transmitted, 4 received, +1 errors, 50% packet loss, time 7047ms
rtt min/avg/max/mdev = 10.886/12.000/13.648/1.177 ms
[root@localhost root]# ping 202.103.24.68
PING 202.103.24.68 (202.103.24.6 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable
From 192.168.1.1 icmp_seq=4 Destination Net Unreachable
From 192.168.1.1 icmp_seq=5 Destination Net Unreachable

--- 202.103.24.68 ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 3996ms

[root@localhost root]# ping 61.183.80.228
PING 61.183.80.228 (61.183.80.22 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable
From 192.168.1.1 icmp_seq=4 Destination Net Unreachable

--- 61.183.80.228 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2997ms

[root@localhost root]# ping 202.103.24.116
PING 202.103.24.116 (202.103.24.116) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable
From 192.168.1.1 icmp_seq=4 Destination Net Unreachable

--- 202.103.24.116 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2997ms

[root@localhost root]#


202.103.26.153是这里的网关
202.103.24.68是DNS
202.103.24.116是这里的一个网站的IP
 楼主| 发表于 2004-5-15 23:48:41 | 显示全部楼层
这是我在windows下ping的结果


Windows IP Configuration



Host Name . . . . . . . . . . . . : hack-gdh2kf6096

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No



Ethernet adapter 本地连接:



Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethernet NIC

Physical Address. . . . . . . . . : 00-E0-4C-5E-1D-4A

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.1.5

Subnet Mask . . . . . . . . . . . : 255.255.255.0

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



PPP adapter ADSL:



Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface

Physical Address. . . . . . . . . : 00-53-45-00-00-00

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 219.140.143.125

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

Default Gateway . . . . . . . . . : 219.140.143.125

DNS Servers . . . . . . . . . . . : 202.103.0.68

202.103.0.117

NetBIOS over Tcpip. . . . . . . . : Disabled



Pinging 202.103.24.68 with 32 bytes of data:



Reply from 202.103.24.68: bytes=32 time=20ms TTL=251

Reply from 202.103.24.68: bytes=32 time=19ms TTL=251

Reply from 202.103.24.68: bytes=32 time=19ms TTL=251

Reply from 202.103.24.68: bytes=32 time=19ms TTL=251



Ping statistics for 202.103.24.68:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 19ms, Maximum = 20ms, Average = 19ms



Pinging 202.103.26.153 with 32 bytes of data:



Reply from 202.103.26.153: bytes=32 time=16ms TTL=127

Reply from 202.103.26.153: bytes=32 time=19ms TTL=127

Reply from 202.103.26.153: bytes=32 time=19ms TTL=127

Reply from 202.103.26.153: bytes=32 time=19ms TTL=127



Ping statistics for 202.103.26.153:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 16ms, Maximum = 19ms, Average = 18ms



Pinging 202.103.24.116 with 32 bytes of data:



Reply from 202.103.24.116: bytes=32 time=17ms TTL=251

Reply from 202.103.24.116: bytes=32 time=19ms TTL=251

Reply from 202.103.24.116: bytes=32 time=19ms TTL=251

Reply from 202.103.24.116: bytes=32 time=19ms TTL=251



Ping statistics for 202.103.24.116:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 17ms, Maximum = 19ms, Average = 18ms
回复

使用道具 举报

发表于 2004-5-16 00:39:27 | 显示全部楼层
将 eth0 的网关去掉
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-7 13:56 , Processed in 0.044543 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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