Tuesday, 19 November 2013

How to use ping command

Ping stands for "Packet InterNet Groper" . The ping command is commonly used to check for network errors. Ping command used to verify if a network data packet is capable of being distributed to an address without errors. This command used in windows and linux etc.

Syntax :

ping target_host  [-options]


Examples:

ping google.com -t

ping 192.168.1.1 -t

The above ping command continuously  sends the packet to the target host until the user presses "Ctrl+c"





C:\Users\home>ping /?

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

Options:
    -t             Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-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 (IPv4-only).
    -i TTL         Time To Live.
    -v TOS         Type Of Service (IPv4-only. This setting has been deprecated

                   and has no effect on the type of service field in the IP Head

No comments:

Post a Comment