Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1942  / 2 Years ago, sun, april 3, 2022, 3:39:22

In windows 8 I used to do in run:



ping 166.18.0.1 -t


where 166.18.0.1 is my DNS IP(suppose).



How to do this same thing in ubuntu?
I have already tried this in the terminal window but it shows an error:



option requires an argument t


So how to do this?


More From » windows

 Answers
1

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.


[#19391] Sunday, April 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
umplegitimat

Total Points: 137
Total Questions: 126
Total Answers: 118

Location: Saint Pierre and Miquelon
Member since Sat, Aug 21, 2021
3 Years ago
;