LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]CentOS 5.2,奇怪的网络问题,请帮我看看吧,谢谢了

[复制链接]
发表于 2009-8-11 15:33:32 | 显示全部楼层 |阅读模式
系统是CentOS 5.2,我已经配好了DNS,而且也可以ping通过域名,但就是不能访问网页。

请帮我看看吧,谢谢了

附相关结果
====================================
[root@sqa ~]# wget http://www.163.com
--14:00:56--  http://www.163.com/
Resolving www.163.com... 220.181.28.51, 220.181.28.52, 220.181.28.53, ...
Connecting to www.163.com|220.181.28.51|:80... failed: Connection timed out.
Connecting to www.163.com|220.181.28.52|:80... failed: Connection timed out.
Connecting to www.163.com|220.181.28.53|:80...

[root@sqa ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:83:F8:E3
          inet addr:192.168.1.17  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe83:f8e3/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:659 errors:0 dropped:0 overruns:0 frame:0
          TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:63331 (61.8 KiB)  TX bytes:36347 (35.4 KiB)
          Interrupt:67 Base address:0x2000
…………
[root@sqa ~]# dig www.google.com

; <<>> DiG 9.3.4-P1 <<>> www.google.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21075
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         603197  IN      CNAME   www.l.google.com.
www.l.google.com.       192     IN      A       64.233.189.104
www.l.google.com.       192     IN      A       64.233.189.99
www.l.google.com.       192     IN      A       64.233.189.147

;; Query time: 11 msec
;; SERVER: 202.109.14.5#53(202.109.14.5)
;; WHEN: Tue Aug 11 14:15:00 2009
;; MSG SIZE  rcvd: 100
发表于 2009-8-11 15:42:38 | 显示全部楼层
假如能 ping 通的话,会不会是在防火墙里把 80 端口,或者是 http 协议给禁掉了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-11 16:18:31 | 显示全部楼层
防火墙都停掉了,还是这样

iptables        0ff   1ff   2ff   3ff   4ff   5ff   6ff

[root@sqa ~]# /etc/init.d/iptables status
Firewall is stopped.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-11 16:31:27 | 显示全部楼层
另外补充下,我访问内网的HTTP,就可以,真奇怪

[root@sqa ~]# wget http://192.168.1.55
--16:15:42--  http://192.168.1.55/
Connecting to 192.168.1.55:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://192.168.1.55/xampp/ [following]
--16:15:42--  http://192.168.1.55/xampp/
Reusing existing connection to 192.168.1.55:80.
HTTP request sent, awaiting response... 200 OK
Length: 604 [text/html]
Saving to: `index.html'

100%[=======================================>] 604         --.-K/s   in 0s

16:15:43 (51.4 MB/s) - `index.html' saved [604/604]
回复 支持 反对

使用道具 举报

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

本版积分规则

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