Ping Command In Windows Server 2008

This article explains Ping command in Windows Server 2008 operating system and also explains its syntax.
  • 1986

Introduction

Ping command is used to verifies IP level connectivity to another TCP/IP computer by sending internet control message protocol echo request messages. The receipt of corresponding echo reply messages are showed along with round trip times. Syntax used for Ping command is given below.

Syntax

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

Parameters For Ping

Parameter Description
/t Defines that ping continue sending Echo Request messages to the destination until interrupted.
/a Defines that reverse name resolution is performed on the destination IP address.
/n <Count> Defines the number of Echo Request messages sent.
/l <Size> Defines the length, in bytes, of the Data field in the Echo Request messages sent.
/f Defines that Echo Request messages are sent with the Don't Fragment flag in the IP header set to 1.
/I <TTL> Defines the value of the TTL field in the IP header for Echo Request messages sent.
/v <TOS> Defines the value of the Type of Service (TOS) field in the IP header for Echo Request messages sent.
/r <Count> Defines that the Record Route option in the IP header is used to record the path taken by the Echo Request message and corresponding Echo Reply message.
/s <Count> Defines that the Internet Timestamp option in the IP header is used to record the time of arrival for the Echo Request message and corresponding Echo Reply message for each hop.
/j <HostList> Defines that the Echo Request messages use the Loose Source Route option in the IP header with the set of intermediate destinations specified in HostList.
/k <HostList> Defines that the Echo Request messages use the Strict Source Route option in the IP header with the set of intermediate destinations specified in HostList.
/w <Timeout> Defines the amount of time, in milliseconds, to wait for the Echo Reply message that corresponds to a given Echo Request message to be received.
/R Defines that the round-trip path is traced.
/S <SrcAddr> Defines the source address to use.
/4 Defines that IPv4 is used to ping.
/6 Defines that IPv6 is used to ping.
<TargetName> Defines the host name or IP address of the destination.
/? Shows help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.