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.
Question
Options
- Aifconfig
- Bdig
- Cnetstat
- Droute
- Etrackroute
How the community answered
(47 responses)- B4% (2)
- C94% (44)
- E2% (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.
ifconfig is used to configure network interfaces and display their status, but it does not primarily display the routing table.
dig is a DNS lookup utility and has no function for displaying the local routing table.
The netstat -rn (or netstat -r) command is used to display the kernel IP routing table, showing network destination, gateway, and interface.
The route -n (or route) command is specifically designed to show and manipulate the IP routing table, detailing destinations, gateways, and metrics.
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
Community Discussion
No community discussion yet for this question.