JN0-102 · Question #102
Which command will silently drop a matching packet?
The correct answer is B. set routing-options static route 10.1.1.1/32 discard. The discard keyword, when configured as the next-hop value for a static route, causes any matching packets to be silently dropped without sending any notification back to the source.
Question
Which command will silently drop a matching packet?
Options
- Aset routing-options static route 10.1.1.1/32 no-retain
- Bset routing-options static route 10.1.1.1/32 discard
- Cset routing-options static route 10.1.1.1/32 reject
- Dset routing-options static route 10.1.1.1/32 passive
How the community answered
(30 responses)- A3% (1)
- B87% (26)
- C3% (1)
- D7% (2)
Why each option
The `discard` keyword, when configured as the next-hop value for a static route, causes any matching packets to be silently dropped without sending any notification back to the source.
The `no-retain` option prevents a static route from being retained in the routing table when the next-hop interface goes down or is removed, but it does not cause packets to be dropped.
Configuring a static route with the `discard` keyword as the next-hop causes any packets matching that route to be dropped immediately and silently by the router, meaning no ICMP unreachable message is generated or sent back to the source.
The `reject` keyword causes matching packets to be dropped, but it also explicitly sends an ICMP Destination Unreachable message back to the source, which is not a silent drop.
The `passive` keyword for a static route ensures it is installed in the routing table and used for forwarding but not advertised by routing protocols by default; it does not cause packets to be dropped.
Concept tested: Static route discard next-hop behavior
Source: https://www.juniper.net/documentation/us/en/software/junos/static-routing/topics/topic-map/static-routes-configuring.html
Topics
Community Discussion
No community discussion yet for this question.