JN0-102 · Question #103
Which command will drop a matching packet and send out a notification message?
The correct answer is C. set routing-options static route 10.1.1.1/32 reject. The reject keyword, when used as the next-hop for a static route, causes matching packets to be dropped and triggers an ICMP Destination Unreachable message back to the source.
Question
Which command will drop a matching packet and send out a notification message?
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 no-install
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C93% (25)
Why each option
The `reject` keyword, when used as the next-hop for a static route, causes matching packets to be dropped and triggers an ICMP Destination Unreachable message back to the source.
The `no-retain` option prevents a static route from being retained in the routing table if its next-hop interface becomes unavailable, but it does not drop packets or send notifications.
The `discard` keyword causes packets to be dropped silently without sending any notification message, which is contrary to the requirement of sending a notification.
The `reject` keyword configured as the next-hop for a static route explicitly instructs the Junos device to drop any packet matching that route and concurrently send an ICMP Destination Unreachable message to the packet's source, thereby providing a notification.
The `no-install` option prevents a static route from being installed into the forwarding table, meaning it won't be used for actual packet forwarding, but it doesn't actively drop packets or send notifications.
Concept tested: Static route reject 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.