nerdexam
Juniper

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.

User Interface Options

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)
  • A
    6% (3)
  • B
    2% (1)
  • C
    4% (2)
  • D
    88% (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.

Ashow route

`show route` displays all active routes in the routing table, not exclusively direct routes.

Bshow route inet.0 direct

`show route inet.0 direct` is syntactically incorrect for filtering by protocol type; 'direct' is not a valid table option in this context.

Cshow ip route direct

`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`.

Dshow route protocol directCorrect

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

#show command#direct routes#Junos CLI

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice