Which command will display only direct routes?
Click on the arrows to vote for the correct answer
A. B. C. D.D
The correct answer to the question is option B, "show route inet.0 direct".
Explanation:
The "show route" command is used to display the routing table information for all protocols and routes, including direct, indirect, static, and dynamic routes.
Option B, "show route inet.0 direct" command will only display the routes that are directly connected to the device. The "inet.0" keyword specifies that we are looking for routes in the IPv4 unicast routing table. The "direct" keyword filters the output to display only the directly connected routes.
Option C, "show ip route direct" is not a valid command in Junos OS. This command belongs to Cisco IOS and is used to display only the directly connected IP routes.
Option D, "show route protocol direct" is also not a valid command in Junos OS. This command is used to display only the routes learned via the direct protocol.
Therefore, the correct answer is B, "show route inet.0 direct".