LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1744|回复: 14

能ping,能上pldgin,能发email,但是不能wget,apt-get和上网页

[复制链接]
发表于 2008-3-1 10:01:56 | 显示全部楼层 |阅读模式
求救:什么问题?怎么解决~~
用IP也登陆不了网页,应该不是DNS的问题吧?
发表于 2008-3-1 11:43:42 | 显示全部楼层
偶尔能打开网页 。。。偶尔掉线的人飘过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-1 12:53:41 | 显示全部楼层
对了,前几天更新路由了~有关系吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-1 13:00:14 | 显示全部楼层

能ping,能上pldgin,能发email,但是不能wget,apt-get和上网页

求救:什么问题?怎么解决~~
用IP也登陆不了网页,应该不是DNS的问题吧?
回复 支持 反对

使用道具 举报

发表于 2008-3-1 13:28:56 | 显示全部楼层
mtu的问题?
把ifconfig的结果贴一下吧
回复 支持 反对

使用道具 举报

发表于 2008-3-1 14:41:26 | 显示全部楼层
看路由 用
traceroute 外网地址
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-2 21:46:30 | 显示全部楼层

请大家帮忙啊~~

1).  ifconfig结果如下:
eth0      Link encap:Ethernet  HWaddr 00:134:3C:85:1D  
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 Base address:0xc000

eth1   Link encap:Ethernet  HWaddr 00:0A:EB:9C:A4:A7  
          inet addr:192.168.1.101  Bcast:192.168.1.255
           Mask:255.255.255.0
          inet6 addr: fe80::20a:ebff:fe9c:a4a7/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3029 (2.9 KB)  TX bytes:4688 (4.5 KB)
          Interrupt:19 Base address:0xec00

lo        Link encapocal 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: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)



2). /etc/host.conf文件内容为:

# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on

3).  /etc/resove.conf文件内容为:

search domain
nameserver 202.103.24.68
nameserver 202.103.44.150

4).  /etc/network/interfaces内容为:

auto lo
iface lo inet loopback



iface eth1 inet dhcp

auto eth1


5).这是我ping百度的结果:
wrante@wrante:~$ ping www.baidu.com
PING www.a.shifen.com (220.181.6.6) 56(84) bytes of data.
64 bytes from 220.181.6.6: icmp_seq=1 ttl=53 time=228 ms
64 bytes from 220.181.6.6: icmp_seq=2 ttl=53 time=225 ms
64 bytes from 220.181.6.6: icmp_seq=3 ttl=53 time=227 ms
64 bytes from 220.181.6.6: icmp_seq=4 ttl=53 time=230 ms
64 bytes from 220.181.6.6: icmp_seq=5 ttl=53 time=227 ms
64 bytes from 220.181.6.6: icmp_seq=6 ttl=53 time=228 ms
64 bytes from 220.181.6.6: icmp_seq=7 ttl=53 time=227 ms
64 bytes from 220.181.6.6: icmp_seq=8 ttl=53 time=227 ms
64 bytes from 220.181.6.6: icmp_seq=9 ttl=53 time=228 ms
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 14:36:02 | 显示全部楼层
请大家帮忙啊~~重装了系统还是上不了网啊~是不是路由器的原因啊?
回复 支持 反对

使用道具 举报

发表于 2008-3-3 14:54:35 | 显示全部楼层
从现象上看,所有基于 http 协议的应用都不行。

难道往外连的 80 端口被禁止了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 16:53:15 | 显示全部楼层
80端口被禁了?我也这样想啊~~
但是我的两个linux系统同时不能上网了,以下是:netstat -s的结果:
wrante@wrante:~$ netstat -s
Ip:
    40 total packets received
    1 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    39 incoming packets delivered
    26 requests sent out
Icmp:
    0 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
    0 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
Tcp:
    0 active connections openings
    0 passive connection openings
    0 failed connection attempts
    0 connection resets received
    0 connections established
    0 segments received
    0 segments send out
    0 segments retransmited
    0 bad segments received.
    0 resets sent
Udp:
    24 packets received
    0 packets to unknown port received.
    0 packet receive errors
    24 packets sent
UdpLite:
TcpExt:
    0 packet headers predicted
    0 TCP data loss events
IpExt:
    InMcastPkts: 16
    OutMcastPkts: 18
    InBcastPkts: 15
回复 支持 反对

使用道具 举报

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

本版积分规则

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