CompTIA Linux+ (XK0-004) — Question 218
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?
Answer options
- A. arp -gw
- B. arp -a
- C. arp -gwi
- D. arp -gtw
Correct answer: B
Explanation
The correct command is 'arp -a' because it displays the current ARP table, which includes the MAC addresses associated with IP addresses, including that of the gateway. The other options are either incorrectly formatted or do not exist as valid commands in the ARP utility.