nerdexam
LPI

010-100 · Question #16

010-100 Question #16: Real Exam Question with Answer & Explanation

The correct answer is D. route. Displaying the default gateway on a Linux system requires a command that shows the kernel routing table. The route command prints this table, including the gateway entry.

Question

A Linux computer has no access to the internet. Which command displays information about the network gateway for the system?

Options

  • Atraceroute
  • Bifconfig
  • Cgateway
  • Droute
  • Eipconfig

Explanation

Displaying the default gateway on a Linux system requires a command that shows the kernel routing table. The route command prints this table, including the gateway entry.

Common mistakes.

  • A. The traceroute command probes the network path to a remote host hop by hop and requires network connectivity to be useful; it does not simply display local gateway configuration.
  • B. The ifconfig command displays interface configuration such as IP address, netmask, and MAC address, but does not show routing or gateway information.
  • C. There is no standard Linux command called gateway; this is not a valid utility.
  • E. The ipconfig command is a Windows utility, not a Linux command, and is not available on a standard Linux system.

Concept tested. Displaying kernel routing table and default gateway

Reference. https://man7.org/linux/man-pages/man8/route.8.html

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice