Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 16ms, Average = 8ms

Ping is also useful in identifying name resolution problems. If you can ping a host by IP address but not by host name, one of the following could be the cause:

♦ There is no valid host record in the remote host's domain. Add an entry to the DNS zone or add an entry in your local Hosts file for the remote host.

♦ You have an incorrect entry in your local Hosts file for the host. Remove or correct the entry in the Hosts file. See Chapter 17 for a discussion of the Hosts and Lmhosts files.

♦ Your DNS configuration is incorrect (pointed to wrong or unavailable DNS servers). Correct the configuration and try again.

Before you begin testing any connectivity problem, verify that you can ping your own workstation. Use ping to perform an internal loopback test that verifies whether or not TCP/IP is functioning on your computer. Use one of the following commands to ping your own computer:

ping ping localhost ping YourIPAddress

Following is the syntax for the ping command:

ping [-t] [-a] [-n count] [-l size] [-f] [-i ttl] [-v tos] [-r count][-s count] [[-j HostList] | [-k HostList]] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

Table 15-13 describes the switches you can use with ping.

Table 15-13: ping Command Switches




-s count

Pings continuously until terminated by Ctrl+C. Press Ctrl+Break to view statistics.

Resolves address to host name.

Perform extended testing or check for intermittent problems.

Test name resolution and troubleshoot Hosts file.

Specifies number of packets to send. Perform extended testing.

Specifies packet size in bytes; the default is 64, the maximum is 8,192.

Sets Don't Fragment flag in packet.

Sets packet time-to-live.

Sets Type of Service field.

Records packet route; specify from 1 to 9.

Sets timestamp for number of hops specified by count.

-j HostList Routes packets using host list; specify maximum of 9 hosts.

-k HostList Routes packets using host list.

-w timeout Sets packet timeout in milliseconds.

Check for packet fragmentation and response time.

Prevent routers from fragmenting packet.

Increase timeout on slow connections.

Specify type of action remote router should perform on the packet.

Determine route of outgoing and incoming packets.

Set current hop count for the packet.

Direct traffic through specific route; hosts can be separated by intermediate gateways (loose source route).

Similar to -j but hosts can't be separated by intermediate gateways (strict source route).

Increase timeout value to overcome timeout on slow connections.

Switch Function

-R Traces a round-trip path.

-S srcaddr Source address to use.

-4 Forces IPV4.

-6 Forces IPV6.

target_name Specifies remote host(s) to ping.

Trace back to client; used on IPV6 only.

Specify source address to ping from; used on IPV6 only.

Force ping to use IPV4; not necessary if specifying IPV4 address.

Force ping to use IPV6.

Specify destination to ping.

Was this article helpful?

0 0

Post a comment