nerdexam
CompTIA

XK0-004 · Question #270

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 def

The correct answer is A. route -n. The route -n command displays the kernel IP routing table in numeric form, including the default gateway entry (destination 0.0.0.0), making it the correct tool to identify the configured default gateway.

Troubleshooting and Diagnostics

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

How the community answered

(33 responses)
  • A
    94% (31)
  • B
    3% (1)
  • D
    3% (1)

Why each option

The route -n command displays the kernel IP routing table in numeric form, including the default gateway entry (destination 0.0.0.0), making it the correct tool to identify the configured default gateway.

Aroute -nCorrect

route -n reads the kernel routing table and prints it without performing DNS lookups (-n flag). The default gateway appears as a route with destination 0.0.0.0 and a Gateway column showing the gateway IP (10.10.10.1 in this scenario), directly answering whether the server has a correct gateway configured.

Bip a default-gw

ip a default-gw is not a valid command; ip a (ip addr) only shows interface address information and does not accept a default-gw subcommand.

Cifconfig

ifconfig displays interface-level configuration such as IP addresses and MAC addresses but does not show routing table entries or the default gateway.

Dnslookup

nslookup is a DNS query tool used to resolve hostnames; it provides no information about the system's routing table or default gateway setting.

Concept tested: Linux routing table inspection with route -n

Source: https://man7.org/linux/man-pages/man8/route.8.html

Topics

#route command#default gateway#routing table#network diagnostics

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice