A network engineer is troubleshooting a connectivity issue and wants to see the active routes in the routing table. Which Junos CLI command should they use?
Trap 1: show log messages
The 'show log messages' command is used to inspect system event and error logs, such as daemon failures or interface flapping events. While these logs can give clues about why a connectivity issue occurred, they do not display the routing table or the current forwarding state. This makes it a diagnostic tool for historical context, not for verifying whether a route to a destination exists.
Trap 2: show configuration
The 'show configuration' command outputs the applied configuration in either set or hierarchy format, detailing static routes, protocols, and interfaces as they are configured. However, it shows only the intended or configured state, not the dynamically learned routes or active routing table entries. A route may be configured but still not be active in the routing table due to an error, so this command cannot confirm the actual routing state.
Trap 3: show interface
The 'show interface' command provides information about physical and logical interface properties, including link status, input/output errors, and protocol state (e.g., up/down). This is useful for verifying Layer 1 and Layer 2 connectivity, but it does not provide Layer 3 route information. Even if all interfaces show 'up', a route may still be missing or the next hop may be unreachable, so this command cannot be used to troubleshoot routing-table-level issues.
- A
show log messages
Why wrong: The 'show log messages' command is used to inspect system event and error logs, such as daemon failures or interface flapping events. While these logs can give clues about why a connectivity issue occurred, they do not display the routing table or the current forwarding state. This makes it a diagnostic tool for historical context, not for verifying whether a route to a destination exists.
- B
show configuration
Why wrong: The 'show configuration' command outputs the applied configuration in either set or hierarchy format, detailing static routes, protocols, and interfaces as they are configured. However, it shows only the intended or configured state, not the dynamically learned routes or active routing table entries. A route may be configured but still not be active in the routing table due to an error, so this command cannot confirm the actual routing state.
- C
show interface
Why wrong: The 'show interface' command provides information about physical and logical interface properties, including link status, input/output errors, and protocol state (e.g., up/down). This is useful for verifying Layer 1 and Layer 2 connectivity, but it does not provide Layer 3 route information. Even if all interfaces show 'up', a route may still be missing or the next hop may be unreachable, so this command cannot be used to troubleshoot routing-table-level issues.
- D
show route
The 'show route' command is the correct tool for troubleshooting a connectivity issue because it displays the active routing table, including all routes learned from each routing protocol, with their next-hop addresses and preference values. It allows an engineer to verify whether a destination is reachable, which route is being used, and why that route was selected. This command directly answers whether the router has a valid forwarding path to the target network.