nerdexam
CompTIA

LX0-104 · Question #69

Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

The correct answer is C. netstat D. route. The netstat and route commands are commonly used on Linux systems to inspect the local kernel routing table, providing insights into how network traffic is directed. Both commands offer options to display routing information.

Networking Fundamentals

Question

Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

Options

  • Aifconfig
  • Bdig
  • Cnetstat
  • Droute
  • Etrackroute

How the community answered

(47 responses)
  • B
    4% (2)
  • C
    94% (44)
  • E
    2% (1)

Why each option

The netstat and route commands are commonly used on Linux systems to inspect the local kernel routing table, providing insights into how network traffic is directed. Both commands offer options to display routing information.

Aifconfig

ifconfig is used to configure network interfaces and display their status, but it does not primarily display the routing table.

Bdig

dig is a DNS lookup utility and has no function for displaying the local routing table.

CnetstatCorrect

The netstat -rn (or netstat -r) command is used to display the kernel IP routing table, showing network destination, gateway, and interface.

DrouteCorrect

The route -n (or route) command is specifically designed to show and manipulate the IP routing table, detailing destinations, gateways, and metrics.

Etrackroute

trackroute is not a standard Linux command for displaying the local routing table; traceroute is for tracing network paths.

Concept tested: Displaying routing tables

Source: https://linux.die.net/man/8/netstat

Topics

#routing table#netstat#route command

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice