nerdexam
CompTIA

XK0-004 · Question #517

A systems engineer was configuring a small, single-board device running Linux when the device lost power during an outage. The device was running an SSH server and was set up to obtain an IP address v

The correct answer is A. arp. The ARP table maps IP addresses to MAC addresses, and since MAC addresses encode the manufacturer's OUI prefix, filtering the ARP cache by the known manufacturer allows the engineer to identify the device's IP address without knowing its hostname.

Troubleshooting and Diagnostics

Question

A systems engineer was configuring a small, single-board device running Linux when the device lost power during an outage. The device was running an SSH server and was set up to obtain an IP address via DHCP. The engineer does not know the hostname of the device but does know the manufacturer and the network it is on. Which of the following would output the MOST useful results when attempting to find the device's IP address?

Options

  • Aarp
  • Bwhois
  • Cnmap
  • Dping
  • Enetcat

How the community answered

(20 responses)
  • A
    75% (15)
  • B
    5% (1)
  • C
    5% (1)
  • E
    15% (3)

Why each option

The ARP table maps IP addresses to MAC addresses, and since MAC addresses encode the manufacturer's OUI prefix, filtering the ARP cache by the known manufacturer allows the engineer to identify the device's IP address without knowing its hostname.

AarpCorrect

Running 'arp -a' (or 'ip neigh') displays the ARP cache, which lists all IP-to-MAC address mappings the local system has learned on the network segment. Because the first three octets of a MAC address encode the manufacturer's Organizationally Unique Identifier (OUI), the engineer can filter the output for the known vendor prefix and directly read off the device's current IP address - no hostname needed.

Bwhois

whois queries public registration databases for domain names or IP address block ownership and returns no information about devices present on a local network segment.

Cnmap

nmap can scan a network for hosts but requires specifying a subnet range and the results are less targeted than filtering a pre-populated ARP table by MAC OUI.

Dping

ping requires a known IP address or hostname as its argument, which is exactly the information the engineer is trying to discover.

Enetcat

netcat is a utility for reading from and writing to network connections and does not perform host discovery or reveal IP-to-MAC mappings.

Concept tested: ARP table usage for device discovery by MAC OUI

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

Topics

#ARP#network discovery#DHCP#device enumeration

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice