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.
Question
Options
- Aroute -n
- Bip a default-gw
- Cifconfig
- Dnslookup
How the community answered
(55 responses)- A87% (48)
- B2% (1)
- C4% (2)
- D7% (4)
Why each option
The `route -n` command displays the kernel routing table, which includes entries for the default gateway.
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.
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`.
ifconfig displays network interface configuration (IP addresses, MAC addresses, etc.) but does not directly show the default gateway information.
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
Community Discussion
No community discussion yet for this question.