JN0-102 · Question #79
Which action does the ping 172.18.1.1 size 5 command perform?
The correct answer is B. It sends a continuous ping with a packet length of five bytes to the 172.18.1.1 destination.. In Junos OS, the size option with the ping command specifies the data payload size of the ICMP packet in bytes, and without a count option, ping sends continuous requests.
Question
Which action does the ping 172.18.1.1 size 5 command perform?
Options
- AIt sends only five ping requests to the 172.18.1.1 destination.
- BIt sends a continuous ping with a packet length of five bytes to the 172.18.1.1 destination.
- CIt sends five rapid ping requests to the 172.18.1.1 destination.
- DIt sends a continuous rapid ping with a packet length of five bytes to the 172.18.1.1 destination.
How the community answered
(15 responses)- A7% (1)
- B87% (13)
- C7% (1)
Why each option
In Junos OS, the `size` option with the `ping` command specifies the data payload size of the ICMP packet in bytes, and without a `count` option, `ping` sends continuous requests.
The `size` option defines packet length, not the number of requests; the `count` option specifies the number of requests.
In Junos OS, the `size <bytes>` option for the `ping` command specifies the number of data bytes in the ICMP packets. By default, without a `count` option, the `ping` command sends continuous requests until manually stopped. Therefore, `ping 172.18.1.1 size 5` sends continuous pings with a 5-byte packet length.
The `size` option is for packet length, not the number of requests. 'Rapid ping requests' would imply a shorter interval, which is usually controlled by the `interval` or `rapid` option, not `size`.
While it is continuous with a packet length of five bytes, the 'rapid' part is not implied by the `size` option.
Concept tested: Junos OS `ping` command options (`size`, `count`)
Source: https://www.juniper.net/documentation/us/en/software/junos/cli/topics/ref/command/ping.html
Topics
Community Discussion
No community discussion yet for this question.