Which command displays the local routing table?

Prepare for the Cisco Network Programmability Design and Implementation Specialist Exam. Study with flashcards and multiple choice questions, with hints and explanations for each question. Ace your exam with confidence!

The command that displays the local routing table is netstat -r. This command is part of the netstat suite, which provides network statistics and information related to the network connections, routing tables, and network protocols. When using the '-r' option, netstat specifically shows the routing table of the system, detailing the network interfaces, the destinations, gateways, and the interfaces that will be used for the routing of packets.

Other commands listed do not focus on displaying the routing table. For example, dig is primarily used for querying DNS (Domain Name System) to obtain information about host addresses, mail exchanges, name servers, and related data. The netstat -i command, on the other hand, presents information about the network interfaces themselves, such as the number of packets received and transmitted, which is not related to routing tables. Lastly, netstat -dir is not a standard argument for netstat and thus would not produce valid results.

In summary, netstat -r is the correct command for viewing the local routing table, providing essential insights into how the system directs traffic through various networks and interfaces.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy