nerdexam
CompTIA

XK0-005 · Question #10220

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…

The correct answer is A. route -n. The route -n command displays the kernel routing table, which includes entries for the default gateway.

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

How the community answered

(55 responses)
  • A
    87% (48)
  • B
    2% (1)
  • C
    4% (2)
  • D
    7% (4)

Why each option

The `route -n` command displays the kernel routing table, which includes entries for the default gateway.

Aroute -nCorrect

The `route -n` command shows the numeric routing table, where the "Gateway" column for the "default" destination (0.0.0.0) indicates the default gateway of the system. This output provides the necessary information to verify the configured default gateway, which is crucial for network connectivity issues.

Bip a default-gw

ip a default-gw is not a valid `ip` command syntax for displaying the default gateway; the correct `ip` command would be `ip route show default` or `ip route`.

Cifconfig

ifconfig displays network interface configuration (IP addresses, MAC addresses, etc.) but does not directly show the default gateway information.

Dnslookup

nslookup is used for DNS queries to resolve hostnames to IP addresses, not to determine the system's default gateway.

Concept tested: Identifying the default network gateway

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

Topics

#Networking commands#Default gateway#Troubleshooting#Routing table

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice