PING command in command prompt

PING

  • PING  is used to determine if a connection exists between your computer and another computer connected via TCP/IP.  
  • It sends a small packets of information to the other computer , which are returned if the connection is found ,and lost otherwise.
  • Ping is a powerful utility to help determine network related problems.
ping is used to get information of connection

must be written in this form

                        ping [address/address name]
                                     EX. ping www.google.com

i have describe in below





press Enter



  • then you can get all information which packet of data in which of the time is sent and which time it received
  • plus how many packet are sent it 
TYPE
                    ping -h    (for help)


 Get the List of the option you can try it

           note:WHENEVER use ping must need to type [address /address name]
                              ping [address/address name] 
                                           EX.   ping -t www.google.com

  • 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] [-c compartment] [-p]
                [-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
                                     Header).
        -r count                 Record route for count hops (IPv4-only).
        -s count                Timestamp for count hops (IPv4-only).
        -j host-list             Loose source route along host-list (IPv4-only).
        -k host-list           Strict source route along host-list (IPv4-only).
        -w timeout           Timeout in milliseconds to wait for each reply.
        -R                        Use routing header to test reverse route also (IPv6-only).
                                    Per RFC 5095 the use of this routing header has been
                                    deprecated. Some systems may drop echo requests if
                                    this header is used.
        -S srcaddr            Source address to use.
        -c compartment   Routing compartment identifier.
        -p                         Ping a Hyper-V Network Virtualization provider address.
        -4                         Force using IPv4.
        -6                         Force using IPv6.






Comments