SK0-004 · Question #329
When running a Windows server, which option is used with the ping command to define the number of packets transmitted?
The correct answer is A. -n. On Windows, the ping command uses the -n switch to specify how many ICMP echo request packets are sent to the target host. The default is 4 packets when no switch is provided.
Question
When running a Windows server, which option is used with the ping command to define the number of packets transmitted?
Options
- A-n
- B-a
- C-r
- D-v
How the community answered
(40 responses)- A93% (37)
- B5% (2)
- C3% (1)
Why each option
On Windows, the ping command uses the -n switch to specify how many ICMP echo request packets are sent to the target host. The default is 4 packets when no switch is provided.
The -n count option in the Windows ping command sets the exact number of echo request messages to transmit. For example, 'ping -n 10 192.168.1.1' sends 10 packets instead of the default 4, which is useful for extended connectivity testing.
-a resolves the target IP address to a hostname using reverse DNS lookup; it does not affect packet count.
-r count records the route taken by packets for up to 9 hops; it controls route recording, not the number of packets sent.
-v is not a recognized option in the Windows version of ping and does not control packet count.
Concept tested: Windows ping command packet count option
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ping
Topics
Community Discussion
No community discussion yet for this question.