nerdexam
CompTIA

220-802 · Question #706

Which of the following PING switches would be used to continue a ping to a host until stopped?

The correct answer is C. -t. The ping -t switch on Windows sends continuous ICMP echo requests to the target host without stopping until the user manually terminates the command.

Networking

Question

Which of the following PING switches would be used to continue a ping to a host until stopped?

Options

  • A-r
  • B-a
  • C-t
  • D-l

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    95% (35)

Why each option

The ping -t switch on Windows sends continuous ICMP echo requests to the target host without stopping until the user manually terminates the command.

A-r

The -r switch records the route taken by packets for a specified number of hops, it does not make ping run continuously.

B-a

The -a switch resolves the destination IP address to a hostname, it has no effect on how long ping runs.

C-tCorrect

The -t switch instructs the Windows ping command to continuously send echo request packets to the specified host indefinitely, only stopping when the user presses Ctrl+C or Ctrl+Break, which is useful for monitoring intermittent connectivity issues.

D-l

The -l switch sets the size of the send buffer (packet payload size) and does not affect whether ping runs continuously.

Concept tested: Windows ping command switches and continuous ping

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ping

Topics

#ping command#command switches#continuous ping#network CLI

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice