Thursday, May 26, 2011

What is PING -t

ping -t will ping the specified host until stopped.


The PING command is a tool that can give you useful information on the nature of your Internet connection. PING allows you to see if a particular IP address or a particular Domain name exists on the Internet and is actively returning PING requests.
Once you have your command line open type in Ping, followed by a space and then the IP address or domain name that you want to test. for example: ping 10.5.2.6
Here is a normal reply
:

Reply from 10.5.2.6: bytes=32 time=100ms TTL=252
Reply from 10.5.2.6: bytes=32 time=100ms TTL=252
Reply from 10.5.2.6: bytes=32 time=100ms TTL=252
Reply from 10.5.2.6: bytes=32 time=100ms TTL=252

Ping statistics for 10.5.2.6:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 100ms, Maximum = 100ms, Average = 100ms


These results tell you that four test packets were sent out of 32 bytes each in size and came back from 10.5.2.6 in a time of 100ms. The TTL figure stands for time to live and defines how long your Ping requests bounce around before expiring.


Here is how it looks when it fails:
Pinging 10.5.2.6 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.5.2.6:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)


Ping Options.

The Ping command can be used with the following switches. To add a switch to the command just add it after a space. e,g,

Ping -t
Ping -t -a


Options:
    -t Ping the specified host until stopped. Stop with CTRL and C.
    -a Resolve addresses to hostnames.
    -n count Number of echo requests to send.
    -l size Send buffer size.
    -f Set Don't Fragment flag in packet.
    -i TTL Time To Live.
    -v TOS Type Of Service.
    -r count Record route for count hops.
    -s count Timestamp for count hops.
    -j host-list Loose source route along host-list.
    -k host-list Strict source route along host-list.
    -w timeout Timeout in milliseconds to wait for each reply
Oh, BTW, in case you use Ping -t and it stops after 49.7 days, here is the fix , well, just in case....