Only ping 166.18.0.1
would do.
In Ubuntu by default ping
continues to run indefinitely unless you mention a limit (by the -c
option), so ping 166.18.0.1
is the same as windows ping 166.18.0.1 -t
.
In Ubuntu the -t
option of ping
is to set a TTL value, as you have inserted the -t
option without giving a TTL value you are getting the error saying you need to give a value to -t
.
If you need to change the ICMP packet size from 64 bytes to 32 bytes:
ping -s 24 166.18.0.1
As 8 byte ICMP header is added so the total packet size would be 24+8=32 bytes.
Check man ping
to get more idea.
-t
to run theping
indefinitely in windows?