How to make linux ping behaves like MS ping?

marckasten no-reply-gw at fcp.homelinux.org
Sat Apr 2 04:05:35 UTC 2005


> 
> Is there any way to make ping in linux behave like ping in MS Windows?
> 


Well, there are only a couple of differences.

First, only four ping packets.

Second, print request timed out (or similar).

If you "man ping", you'll get all the options that come stock with this useful command.

If you type:
ping -c 4 a.b.c.d
(where a.b.c.d is a network address), you'll get four ping packets to that address.  Since FC is looking to show you the output on that, you'll get something like:

[code]
[marc at DaClown marc]$ ping -c 4  10.18.13.254
PING 10.18.13.254 (10.18.13.254) 56(84) bytes of data.
>From 10.18.10.1 icmp_seq=0 Destination Host Unreachable
>From 10.18.10.1 icmp_seq=1 Destination Host Unreachable
>From 10.18.10.1 icmp_seq=2 Destination Host Unreachable
>From 10.18.10.1 icmp_seq=3 Destination Host Unreachable

--- 10.18.13.254 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
, pipe 2
[marc at DaClown marc]$ 
[/code]

Hope that helps.
--Marc


-- 
This is an email sent via the webforum on http://fcp.homelinux.org
http://fcp.homelinux.org/modules/newbb/viewtopic.php?post_id=55536&topic_id=13977&forum=10#forumpost55536




More information about the users mailing list