LFCS · 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 standard utilities used to display the local routing table on Linux systems.
Question
Options
- Aifconfig
- Bdig
- Cnetstat
- Droute
- Etrackroute
How the community answered
(25 responses)- A4% (1)
- B4% (1)
- C88% (22)
- E4% (1)
Why each option
The `netstat` and `route` commands are standard utilities used to display the local routing table on Linux systems.
`ifconfig` displays network interface configuration and statistics, not the routing table.
`dig` is a DNS lookup utility and is not used for displaying routing tables.
`netstat -r` or `netstat -rn` can display the kernel routing table, showing active routes to destinations. D. The `route` command itself, or `route -n`, is specifically designed to show and manipulate the IP routing table, making it a direct tool for this purpose.
`trackroute` is not a standard command for displaying the local routing table; `traceroute` displays the path to a remote host.
Concept tested: Linux routing table commands
Source: https://man7.org/linux/man-pages/man8/netstat.8.html
Topics
Community Discussion
No community discussion yet for this question.