CompTIA A+ Core 2 (220-1202)Operating SystemsMedium

A technician is troubleshooting network connectivity issues on a Linux server. They need to quickly view the current network interface configurations, including IP addresses, netmasks, and MAC addresses. Which command-line tool is commonly used for this purpose on modern Linux distributions?

  1. Aping
  2. Bnetstat
  3. Croute
  4. Dip addr
Show answer & explanation

Correct answer: D. ip addr

The 'ip addr' command (part of the iproute2 utility suite) is the modern and preferred command in Linux for showing and configuring network interfaces, including IP addresses, MAC addresses, and other interface details.

Why the other options are wrong

  • A. ping is used to test network connectivity to a host, not to display local interface configurations.
  • B. netstat displays network connections, routing tables, interface statistics, but 'ip addr' is more direct for interface details.
  • C. route displays or manipulates the IP routing table, not detailed interface configurations.

ip addr command (Linux)

A command-line utility in Linux (part of the iproute2 suite) used to display and configure network interfaces, including IP addresses, MAC addresses, and interface status.

  • Replaced 'ifconfig' on most modern Linux distributions.
  • Provides detailed information about all network interfaces.
  • Can also be used to add/delete IP addresses and configure interfaces.

Memory trick: IP Addresses Are Directly Displayed.

More Operating Systems questions