nerdexam
CompTIACompTIA

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.

Troubleshooting

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-gw is not a valid ip command for displaying the default gateway; the correct syntax for ip would be ip route show default.
  • C. ifconfig displays network interface configuration details but does not directly show the routing table or the default gateway.
  • D. nslookup is 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

#Networking#Command Line Tools#Default Gateway#Routing Tables

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions