[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Discrepancy in ping behavior between Darwin BSD and Linux
From: |
Sirio Balmelli |
Subject: |
Re: Discrepancy in ping behavior between Darwin BSD and Linux |
Date: |
Wed, 08 Dec 2021 19:52:49 +0000 |
Thank you very much.
192.168.255.254 was deliberately picked to be a private-sector address that my
router would black-hole, but this example will work with *any* unreachable IP.
Here is an example with an unreachable public IP:
$ # unreachable public IP correctly times out
$ ping -c 1 --timeout 5 149.14.210.192
PING 149.14.210.192 (149.14.210.192): 56 data bytes
--- 149.14.210.192 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
$
$ # same unreachable public IP shows a response when another working instance
of ping is live
$ ping -c 1 --timeout 5 149.14.210.192 & ping -c 1 1.1.1.1
[1] 68536
PING 1.1.1.1 (1.1.1.1): 56 data bytes
PING 149.14.210.192 (149.14.210.192): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=55 time=106.868 ms
--- 149.14.210.192 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 106.868/106.868/106.868/0.000 ms
64 bytes from 1.1.1.1: icmp_seq=0 ttl=55 time=106.869 ms
--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 106.869/106.869/106.869/0.000 ms
[1]+ Done ping -c 1 --timeout 5 149.14.210.192
$
Hope this helps, please let me know how else I can assist.
best,
Sirio
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, December 8th, 2021 at 6:45 PM, Alfred M. Szmidt <ams@gnu.org>
wrote:
> Where is 192.168.255.254 routed on Darwin?
>
> I.e., what does say:
>
> ping -c 1 192.168.255.254
>
> Or traceroute.