Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

How to ping an IP address in DOS window

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Feb-13
Networking, Programming and Graphics - Tutorials
Visited: 8664 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Ivory Morhuld

This tutorial will show you how to check that IP address is live or that you have connection to him. This operation we call - ping.

By default four packets will be send and respective four packets will be waited. If not return all of them this call - packet loss.

Also is good to see the time for reacting each packet. Lower times is better.
C:\>[b]ping onlinehowto.net[/b]

Pinging onlinehowto.net [66.226.93.73] with 32 bytes of data:

Reply from 66.226.93.73: bytes=32 time=189ms TTL=49
Reply from 66.226.93.73: bytes=32 time=199ms TTL=49
Reply from 66.226.93.73: bytes=32 time=189ms TTL=49
Reply from 66.226.93.73: bytes=32 time=191ms TTL=49

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

C:\>
For other ping option you can type 'ping /?' at DOS prompt.
C:\>[b]ping /?[/b]

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] 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.
    -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.


C:\>
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: