Which command shows details of the routing table and allows manipulation?

Study for the Tanium Technical Account Manager Interview Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Ace your interview with confidence!

Multiple Choice

Which command shows details of the routing table and allows manipulation?

Explanation:
Understanding how to view and adjust the IP routing table is about knowing which tool can both reveal current routes and modify them. The route command fits this need because it displays the routing table entries, showing destinations, gateways, and interfaces, and it also provides options to add, delete, or change routes. For example, you can print the table with numeric addresses using route -n, or add a default route with route add default gw <gateway>. In contrast, DNS tools like nslookup and dig are used to resolve names to IP addresses, and traceroute shows the path packets take to a destination without altering routing tables. So, the route command is the one that both shows the routing table and allows manipulation.

Understanding how to view and adjust the IP routing table is about knowing which tool can both reveal current routes and modify them. The route command fits this need because it displays the routing table entries, showing destinations, gateways, and interfaces, and it also provides options to add, delete, or change routes. For example, you can print the table with numeric addresses using route -n, or add a default route with route add default gw . In contrast, DNS tools like nslookup and dig are used to resolve names to IP addresses, and traceroute shows the path packets take to a destination without altering routing tables. So, the route command is the one that both shows the routing table and allows manipulation.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy