XK0-005 · Question #10280
A Linux administrator needs to know the MAC address of the server's gateway. Which of the following commands should the administrator run to obtain this information?
The correct answer is B. arp -a. arp -a displays the current ARP (Address Resolution Protocol) cache, which maps known IP addresses to their corresponding MAC addresses. After the server communicates with its gateway, the gateway's IP-to-MAC mapping will appear in the ARP table, revealing the gateway's MAC…
Question
Options
- Aarp -gw
- Barp -a
- Carp -gwi
- Darp -gtw
How the community answered
(51 responses)- A2% (1)
- B92% (47)
- C4% (2)
- D2% (1)
Explanation
arp -a displays the current ARP (Address Resolution Protocol) cache, which maps known IP addresses to their corresponding MAC addresses. After the server communicates with its gateway, the gateway's IP-to-MAC mapping will appear in the ARP table, revealing the gateway's MAC address. The options arp -gw, arp -gwi, and arp -gtw are not valid arp command flags. The -a flag is the standard option to display all cached ARP entries.
Topics
Community Discussion
No community discussion yet for this question.