Lpic 2 Linux Engineer · Free Practice Question Medium

Question 6

A user reports that they cannot reach an external website from their workstation. You suspect a routing issue. Which command would you use to check the system’s routing table?
  • A netstat -tulnp
  • B route add default gw
  • C ip route show
  • D ss -lntp
Reveal correct answer

Correct answer: C

A. The command "netstat -tulnp" is used to display active network connections and listening ports on a system. It does not provide information about the system's routing table, so it is not the correct choice for checking a routing issue.

B. The command "route add default gw" is used to add a default gateway to the system's routing table. It is not used to display the existing routing table, so it is not the correct choice for checking the system's routing table in this scenario.

C. The command "ip route show" is used to display the system's routing table, including the routes to different networks and the default gateway. It provides the necessary information to diagnose a routing issue, making it the correct choice for checking the system's routing table in this situation.

D. The command "ss -lntp" is used to display listening network sockets on a system. It does not provide information about the system's routing table, so it is not the correct choice for checking a routing issue related to reaching an external website.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need