Question 100
A Linux administrator needs to see the host routing table and determine which default gateway carries traffic outside the subnet. Which command is suited to that requirement?
Explanation
Correct Answer
The Linux `ip route` command shows the kernel IPv4 routing table, including connected prefixes and the default route with the gateway and interface. This is the local forwarding decision context needed for remote connectivity. Displaying DNS records or MAC neighbors alone does not identify the selected IP default path.
Incorrect Answers
Spanning Tree is a switching-control protocol, not a Linux host command for its IP route table. The gateway is a Layer 3 forwarding parameter.
A DNS query can verify name resolution, but does not show the operating system’s installed default gateway. Reachability can fail even if DNS returns a valid IP.
`ip neigh` displays neighbor address resolution entries such as local IP-to-MAC mappings. It does not give the complete route table or the default route selection.