nerdexam
CompTIA

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.

Troubleshooting

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)
  • A
    93% (37)
  • B
    5% (2)
  • C
    3% (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.

A-nCorrect

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.

B-a

-a resolves the target IP address to a hostname using reverse DNS lookup; it does not affect packet count.

C-r

-r count records the route taken by packets for up to 9 hops; it controls route recording, not the number of packets sent.

D-v

-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

#ping command#Windows networking#packet count#network diagnostics

Community Discussion

No community discussion yet for this question.

Full SK0-004 Practice