QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 976|回复: 7

ADSL问题请教

[复制链接]
发表于 2006-3-17 13:22:55 | 显示全部楼层 |阅读模式
按说明配置好ADSL之后,能看到本地IP,能Ping通网关,也能Ping通其它IP,但是其它的啥服务都用不了,是怎么回事?有人遇到过么?
SSH到IP失败,FTP到IP失败,telnet 到IP的80端口失败,都是提示timeout

adsl-status 信息

[code:1]
[root@alfa alfa]# /sbin/adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:221.223.97.18  P-t-P:221.223.96.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1162 (1.1 KiB)  TX bytes:689 (689.0 b)
[/code:1]

ifconfig

[code:1]
[root@alfa network-scripts]# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:E8:AE:14:5B
          inet addr:192.168.0.2  Bcast:192.168.0.2  Mask:255.255.255.255
          inet6 addr: fe80::200:e8ff:feae:145b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1815 errors:0 dropped:0 overruns:0 frame:236
          TX packets:849 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:352137 (343.8 KiB)  TX bytes:51202 (50.0 KiB)
          Interrupt:217 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1662 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1662 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1924588 (1.8 MiB)  TX bytes:1924588 (1.8 MiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:221.223.96.192  P-t-P:221.223.96.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:918 errors:0 dropped:0 overruns:0 frame:0
          TX packets:417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:108031 (105.4 KiB)  TX bytes:17234 (16.8 KiB)[/code:1]

网关信息

[code:1]
[root@alfa network-scripts]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
221.223.96.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 221.223.96.1 0.0.0.0 UG 0 0 0 ppp0
[/code:1]

DNS
[code:1]
[root@alfa alfa]# cat /etc/resolv.conf
# MADE-BY-RP-PPPOE
nameserver 202.106.46.151 [color=red]网关分配的[/color]
nameserver 202.106.0.20  [color=red]我一直用的DNS[/color]
[/code:1]

ping 网关
[code:1]
PING 221.223.96.1 (221.223.96.1) 56(84) bytes of data.
64 bytes from 221.223.96.1: icmp_seq=0 ttl=255 time=11.7 ms
wrong data byte #22 should be 0x16 but was 0x0
#16     10 11 12 13 14 15 0 87 36 99 0 87 36 99 0 87 36 99 0 87 36 99 16 17 18 19 16 17 18 19 16 17
#48     18 19 95 ea 0 0 95 ea
64 bytes from 221.223.96.1: icmp_seq=1 ttl=255 time=20.5 ms
wrong data byte #22 should be 0x16 but was 0x0
#16     10 11 12 13 14 15 0 0 e8 ae 0 0 e8 ae 0 0 e8 ae 16 17 18 15 16 17 18 19 16 17 18 19 16 17
#48     18 19 14 5b 0 e0 14 5b
64 bytes from 221.223.96.1: icmp_seq=2 ttl=255 time=20.0 ms
wrong data byte #22 should be 0x16 but was 0xb6
#16     10 11 12 13 14 15 b6 21 0 0 b6 21 0 0 b6 21 0 0 16 17 18 15 16 17 18 19 16 17 18 19 16 17
#48     18 19 0 0 70 2 0 0
64 bytes from 221.223.96.1: icmp_seq=3 ttl=255 time=19.8 ms
wrong data byte #22 should be 0x16 but was 0x0
#16     10 11 12 13 14 15 0 0 68 11 0 0 68 11 0 0 68 11 16 17 18 15 16 17 18 19 16 17 18 19 16 17
#48     18 19 42 18 58 49 42 18

--- 221.223.96.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 11.788/18.049/20.521/3.623 ms, pipe 2[/code:1]
发表于 2006-3-17 13:35:58 | 显示全部楼层
能 ping 通你要 ssh 的 IP 不?
回复

使用道具 举报

 楼主| 发表于 2006-3-17 14:02:43 | 显示全部楼层
[quote:9bdf903391="Bluedata"]能 ping 通你要 ssh 的 IP 不?[/quote]

可以Ping通,机器肯定是开着的,

OS:CentOS 4.2 x86_64
rp-ppoe:3.5.22
回复

使用道具 举报

发表于 2006-3-17 16:00:02 | 显示全部楼层
确定对方开着SSH服务吗? 确定对方的防火墙允许SSH连接吗?

确定自己的防火墙允许对外连接SSH端口吗?

iptables -L

看看.
回复

使用道具 举报

 楼主| 发表于 2006-3-17 16:22:45 | 显示全部楼层
[quote:7b12a98888="gucuiwen"]确定对方开着SSH服务吗? 确定对方的防火墙允许SSH连接吗?

确定自己的防火墙允许对外连接SSH端口吗?

iptables -L

看看.[/quote]

SSH肯定是开着的,在WINXP下面能正常登陆

iptables -L

[code:1]
[root@alfa alfa]# /sbin/iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[/code:1]
回复

使用道具 举报

发表于 2006-3-17 16:46:16 | 显示全部楼层
修改一下 ppp0 设备的 MTU 值,改为 1452 试试呢。
回复

使用道具 举报

 楼主| 发表于 2006-3-17 16:56:31 | 显示全部楼层
[quote:49bd7ac837="Bluedata"]修改一下 ppp0 设备的 MTU 值,改为 1452 试试呢。[/quote]

在哪儿改?能说的更详细一点儿么?
回复

使用道具 举报

发表于 2006-3-17 17:09:47 | 显示全部楼层
ifconfig ppp0 mtu 1452
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-23 09:31 , Processed in 0.037248 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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