How do I change the Default number of pings?

I know that using -c will temporarily set the number of pings issues for example: "ping -c 5 192.168.1.50" would issue 5 pings. My issue is that if I don't use the -c option (i.e. ping 192.168.1.50), my terminal issues an endless number of pings and it continues to do so until I manually stop the command. I'm not even sure if it would ever stop or just keep going.


In most cases this is not a big deal because I can easily use -c to set the desired number of pings. However when I try to issue a broadcast ping for my LAN which is "ping 192.168.1.255" the command pings the First host that is connected, and continues to ping that same host over and over until I stop it and it never pings any other host besides the first, and my broadcast ping never works.


I really only use the broadcast ping to update the Arp cache before issuing an "arp -a" or something similar, however, it would be nice if I could change the default to something low like between 5 and 10 pings, so that even if I don't use the -c option the count will be low!


Does anybody know how to make this adjustment?

MacBook Pro, OS X Mavericks (10.9.1), late 2011

Posted on Feb 21, 2014 3:52 PM

Reply
4 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I change the Default number of pings?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.