JN0-102 · Question #230
Which command will display only direct routes?
The correct answer is D. show route protocol direct. The command show route protocol direct is used in Juniper OS to display only routes that are directly connected to the router's interfaces.
Question
Which command will display only direct routes?
Options
- Ashow route
- Bshow route inet.0 direct
- Cshow ip route direct
- Dshow route protocol direct
How the community answered
(49 responses)- A6% (3)
- B2% (1)
- C4% (2)
- D88% (43)
Why each option
The command `show route protocol direct` is used in Juniper OS to display only routes that are directly connected to the router's interfaces.
`show route` displays all active routes in the routing table, not exclusively direct routes.
`show route inet.0 direct` is syntactically incorrect for filtering by protocol type; 'direct' is not a valid table option in this context.
`show ip route direct` is a command used in Cisco IOS, not Juniper OS, and the correct Cisco command for directly connected routes is `show ip route connected`.
In Juniper OS, the `show route protocol direct` command filters the routing table to display only routes that have been learned directly from the router's interfaces, categorized under the 'direct' protocol.
Concept tested: Displaying specific route types
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-command-reference/topics/ref/command/show-route.html
Topics
Community Discussion
No community discussion yet for this question.