Juniper Networks Certified Associate Junos: Command for Dropping Matching Packet and Sending Notification Message

Which Command Will Drop a Matching Packet and Send Out a Notification Message?

Prev Question Next Question

Question

Which command will drop a matching packet and send out a notification message?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

The correct answer is C. set routing-options static route 10.1.1.1/32 reject.

Explanation:

Routing policy is a set of rules that are defined to manipulate the routing information as it passes through the routing device. It provides a flexible mechanism to control the path of traffic by setting conditions that must be met for a route to be used or not. Routing policy is implemented using the Junos OS command-line interface (CLI).

The "set routing-options static route" command is used to configure a static route in the routing table. Static routes are routes that are manually configured by the network administrator rather than learned dynamically from a routing protocol.

The options available with the "set routing-options static route" command include "no-retain", "discard", "reject", and "no-install". Each option has a different effect on how the router handles packets that match the static route.

  • "no-retain": This option removes the route from the routing table if the next hop becomes unreachable. It does not affect the processing of packets that match the route.

  • "discard": This option discards packets that match the route without sending any notification message. The sender of the packet does not receive any information about why the packet was dropped.

  • "reject": This option discards packets that match the route and sends a notification message to the sender indicating that the packet was dropped. The notification message is an Internet Control Message Protocol (ICMP) message with a code indicating that the packet was administratively prohibited.

  • "no-install": This option adds the route to the routing table but does not install it as an active route. It is used for testing purposes or as a backup route that can be activated manually.

Therefore, the correct answer is C. set routing-options static route 10.1.1.1/32 reject, which will discard packets that match the route and send a notification message to the sender indicating that the packet was dropped.