c*********3 发帖数: 197 | 1 学校的IT设置:
所有服务器都有内网地址 192.168.x.x
外部能访问的服务器 当然就有外网地址
比如服务器A: 外网地址 123.234.123.123 域名: serverA
内网地址 192.168.123.123
ping serverA
看到是内网的地址
ping 123.234.123.123 看到也是内网地址反馈
看起来没有什么问题。
问题是在serverA上ping不到外网地址123.234.123.123?
IT说没有办法做到。我觉得不太可能。偶对网络不熟悉,请问各位高手这可能是什么问
题?
谢谢
|
z**r 发帖数: 17771 | 2 要看具体网络设计了,根据你的admin的描述,123.234.123.123很可能不是serverA的
真实地址,而是virtual server的IP,serverA只不过是virtual server的server farm
的一个real server而已。
很容易搞清楚,貌似你有serverA的login,上去看看ifconfig -a, netstat -nrv,就
知道了
【在 c*********3 的大作中提到】 : 学校的IT设置: : 所有服务器都有内网地址 192.168.x.x : 外部能访问的服务器 当然就有外网地址 : 比如服务器A: 外网地址 123.234.123.123 域名: serverA : 内网地址 192.168.123.123 : ping serverA : 看到是内网的地址 : ping 123.234.123.123 看到也是内网地址反馈 : 看起来没有什么问题。 : 问题是在serverA上ping不到外网地址123.234.123.123?
|
s*****g 发帖数: 1055 | 3 Your IT is probably right, this is limitation of your NAT/firewall devices,
it drops packets if source and destination are the same after static
translation.
ping serverA returns 192.168.123.123 because your IT has split brain-DNS set up, or if your DNS is managed by outside vendor, firewall did stateful inspection on DNS answers and replaced 123.234.123.123 with 192.168.123.123 when DNS queries come from inside.
Why is this a problem to you any way? 123.234.123.123 should be identical to 192.16 |
c*********3 发帖数: 197 | 4 多谢了。
用netstat -nvr, ifconfig -a 列出来全是内网信息
学校的有自己的DNS |
z**r 发帖数: 17771 | 5 那就是了,你的admin是对的。要么serverA前面是virtual server,要么是一个static
NAT,然后DNS注册的是那个public IP。
【在 c*********3 的大作中提到】 : 多谢了。 : 用netstat -nvr, ifconfig -a 列出来全是内网信息 : 学校的有自己的DNS
|
c*********3 发帖数: 197 | 6 那我用nslookup查域名是该看到local ip和public ip吗?
我看到只有local ip |
s*****g 发帖数: 1055 | 7 you don't read nor think. |
z**r 发帖数: 17771 | 8 saiwong explained this
【在 c*********3 的大作中提到】 : 那我用nslookup查域名是该看到local ip和public ip吗? : 我看到只有local ip
|
c*********3 发帖数: 197 | 9 多谢了。
对网络不熟悉,不知道ping 和nslookup用的是不是一样的模式,所以才这么问。
主要是在一个服务器要跑一个软件,这个软件要求能ping到自己,而且一定要是public
ip。 |