alfal 发表于 2006-3-17 13:22:55

ADSL问题请教

按说明配置好ADSL之后,能看到本地IP,能Ping通网关,也能Ping通其它IP,但是其它的啥服务都用不了,是怎么回事?有人遇到过么?
SSH到IP失败,FTP到IP失败,telnet 到IP的80端口失败,都是提示timeout

adsl-status 信息


[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.18P-t-P:221.223.96.1Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric: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)


ifconfig


[root@alfa network-scripts]# /sbin/ifconfig
eth0      Link encap:EthernetHWaddr 00:00:E8:AE:14:5B
          inet addr:192.168.0.2Bcast:192.168.0.2Mask:255.255.255.255
          inet6 addr: fe80::200:e8ff:feae:145b/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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.1Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNINGMTU:16436Metric: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.192P-t-P:221.223.96.1Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric: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)

网关信息


[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


DNS

[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]


ping 网关

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

Bluedata 发表于 2006-3-17 13:35:58

能 ping 通你要 ssh 的 IP 不?

alfal 发表于 2006-3-17 14:02:43

能 ping 通你要 ssh 的 IP 不?

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

OS:CentOS 4.2 x86_64
rp-ppoe:3.5.22

gucuiwen 发表于 2006-3-17 16:00:02

确定对方开着SSH服务吗? 确定对方的防火墙允许SSH连接吗?

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

iptables -L

看看.

alfal 发表于 2006-3-17 16:22:45

确定对方开着SSH服务吗? 确定对方的防火墙允许SSH连接吗?

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

iptables -L

看看.

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

iptables -L


[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

Bluedata 发表于 2006-3-17 16:46:16

修改一下 ppp0 设备的 MTU 值,改为 1452 试试呢。

alfal 发表于 2006-3-17 16:56:31

修改一下 ppp0 设备的 MTU 值,改为 1452 试试呢。

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

Bluedata 发表于 2006-3-17 17:09:47

ifconfig ppp0 mtu 1452
页: [1]
查看完整版本: ADSL问题请教