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.
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)- A3% (1)
- B3% (1)
- C95% (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.
The -r switch records the route taken by packets for a specified number of hops, it does not make ping run continuously.
The -a switch resolves the destination IP address to a hostname, it has no effect on how long ping runs.
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.
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
Community Discussion
No community discussion yet for this question.