XK0-005 · Question #270
XK0-005 Question #270: Real Exam Question with Answer & Explanation
The correct answer is A: route -n. To determine the default gateway of a server on Linux, the administrator should use the route -n command, which displays the kernel's routing table. The default gateway is typically listed with a destination of 0.0.0.0.
Question
A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1. Which of the following commands should the administrator execute to determine the default gateway of the server?
Options
- Aroute -n
- Bip a default-gw
- Cifconfig
- Dnslookup
Explanation
To determine the default gateway of a server on Linux, the administrator should use the route -n command, which displays the kernel's routing table. The default gateway is typically listed with a destination of 0.0.0.0.
Common mistakes.
- B.
ip a default-gwis not a validipcommand for displaying the default gateway; the correct syntax foripwould beip route show default. - C.
ifconfigdisplays network interface configuration details but does not directly show the routing table or the default gateway. - D.
nslookupis a network administration command-line tool for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or other DNS records, not for checking local routing information.
Concept tested. Linux network routing table, default gateway identification
Reference. https://man7.org/linux/man-pages/man8/route.8.html
Topics
Community Discussion
No community discussion yet for this question.