ping for windows and linux

On Thursday 01 December 2005 3:06 pm, David McMillan wrote:
> No route. Just a crossover Cat5.
>
> > Here are some steps you should look at:
> > 1. Make sure your cables are correct.
>
> Used the same cable for the Windows and SuSE boxes.

ok, cable, windows box, industrial box are "known good"

> > 2. run netstat -nr on your system. You should have a route to the subnet
> > and a default route. Are you using DHCP or a static IP address? netstat
> > should look sim,ilar to this.
>
> Static IP. No routes, but I'll try netstat on it anyway next chance
> I get.
>
> > 3. Are you using a name or an IP address to ping the equipment?
>
> IP. The industrial box doesn't support named access, as far as I know.

No computers support names on tcp/ip. DNS servers (software), convert names
(for humans) to IP addresses (for computers). What the reply was getting at
is that if you were pinging a name, first, ping would have to as DNS for IP,
then uses IP to do actual ping.

e.g.

brad@linux64:~/supers/mozilla> ping wtp.net
PING wtp.net (216.187.141.20) 56(84) bytes of data.
64 bytes from 180com.net (216.187.141.20): icmp_seq=1 ttl=251 time=14.7 ms
64 bytes from 180com.net (216.187.141.20): icmp_seq=2 ttl=251 time=14.7 ms

You can see the name getting converted before the ping, and used for the ping.

Anyway, that is now also known good. (We don't need DNS, you know the IP).


The only question we have then is, "Is the SuSE box known good?"

So, I'll ask. Can you / Have you been able to ping anything with that box?

Does it have internet access? (to test a ping like microsoft.com or your isp
or gateway or something)

Can you Windows box ping the SuSE box? (does it answer?)

Does the ping comand even work on the SuSE box? Can it ping itself?

e.g.

rad@linux64:~/supers/mozilla> ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.043 ms



This should narrow down the possibilities anyway.

Like someone else pointed out. Ping is a TCP/IP protocal / networking thing.

It would be like saying Windows HTML is different than Linux's HTML, or
Windows Font is different that Linux's font.

See what I mean? PING, HTML, FONTS are their own independant things, not tied
to any one OS. The software that reads, write, implements uses these
standards are tied to their OS though. But, both softwares work right, You
shouldn't be able to tell the difference between a ping from a windows box
from a ping from a linux box, from a ping from a Mac or a ping from any
othere piece of hardware (routers, etc.) Just like a person looking at html
code can't tell if the original author wrote the html on a wintel, lintel, or
mac box. You should be able to tell what printed a document with fonts on
it.... etc.


Hope this clears things up and make it easier for you.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值