Which command is used to view routing table interface configurations?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command ip route is used to view the routing table in a Linux system. When you execute this command, it provides a clear and comprehensive display of the routing table, showing the routes in use, the destination addresses, and the corresponding gateway addresses, among other details. This command is part of the ip suite of networking tools, which are the recommended modern alternatives to older tools for managing various aspects of networking on Linux systems.

The ip route command not only shows the routing information but also allows for advanced network configuration and management. It's considered the best practice to use this command in current Linux distributions for viewing route configurations rather than older commands.

Other commands mentioned may provide some information about routing or interfaces but aren't as complete or straightforward for viewing the routing table specifically as ip route. For example, route -n displays the routing table as well but is considered somewhat outdated compared to the ip command. Similarly, ifconfig primarily focuses on interface configurations without providing routing table information, and netstat -r offers routing information but is also considered legacy compared to the ip command for modern Linux use.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy