日期:2014-05-17  浏览次数:20866 次

服务器不能访问公网问题
服务器能访问局域网的网不能访问公网,但是公网的可以访问服务器上部署的网站
ipconfig /all
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\sztz>ipconfig /all

Windows IP Configuration

  Host Name . . . . . . . . . . . . : ahnu-vm198
  Primary Dns Suffix . . . . . . . :
  Node Type . . . . . . . . . . . . : Hybrid
  IP Routing Enabled. . . . . . . . : No
  WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接:

  Connection-specific DNS Suffix . :
  Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
  Physical Address. . . . . . . . . : 08-00-27-71-8F-BD
  DHCP Enabled. . . . . . . . . . . : No
  IP Address. . . . . . . . . . . . : 210.45.192.198
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 210.45.192.3
  DNS Servers . . . . . . . . . . . : 210.45.193.8
  210.45.192.26

不能ping外网网址 但是pathping可用
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\sztz>pathping baidu.com

Tracing route to baidu.com [123.125.114.144]
over a maximum of 30 hops:
  0 ahnu-vm198 [210.45.192.198]
  1 210.45.192.3
  2 * * *
Computing statistics for 50 seconds...
  Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
  0 ahnu-vm198 [210.45.192.198]
  100/ 100 =100% |
  1 --- 100/ 100 =100% 0/ 100 = 0% 210.45.192.3
  0/ 100 = 0% |
  2 --- 100/ 100 =100% 0/ 100 = 0% ahnu-vm198 [0.0.0.0]

Trace complete.

怎么能让服务器访问公网啊??


------解决方案--------------------
判断下是不是系统问题,找台笔记本接一下,设置IP
------解决方案--------------------
不能ping外网网址?你确定ping的外网地址是公网IP?
------解决方案--------------------
检查下DNS
------解决方案--------------------
DHCP先试试