Which modern Linux command displays network interface configuration, including the IP addresses assigned to each interface?

Study for the Network Operations Test. Explore management, protocols, and backup strategies with comprehensive questions and detailed explanations. Prepare for success!

Multiple Choice

Which modern Linux command displays network interface configuration, including the IP addresses assigned to each interface?

Explanation:
To see every network interface and the IP addresses assigned to it, use the modern Linux networking tool from iproute2: ip addr show. This command lists each interface by name and shows both IPv4 and IPv6 addresses (with their prefix lengths), along with other details like state and MAC address. It’s designed for current systems and handles all the common networking information you’d need in one place. A quick shortcut is ip a, which gives the same output with fewer keystrokes. The other options don’t fit as well. Ifconfig is an older utility that’s been superseded by ip addr show on many distributions, and while it can display some interface info, it’s not the standard for modern setups. Ipconfig is a Windows command and won’t run on Linux. Netstat focuses on sockets, active connections, and routing tables rather than listing per-interface IP configurations.

To see every network interface and the IP addresses assigned to it, use the modern Linux networking tool from iproute2: ip addr show. This command lists each interface by name and shows both IPv4 and IPv6 addresses (with their prefix lengths), along with other details like state and MAC address. It’s designed for current systems and handles all the common networking information you’d need in one place. A quick shortcut is ip a, which gives the same output with fewer keystrokes.

The other options don’t fit as well. Ifconfig is an older utility that’s been superseded by ip addr show on many distributions, and while it can display some interface info, it’s not the standard for modern setups. Ipconfig is a Windows command and won’t run on Linux. Netstat focuses on sockets, active connections, and routing tables rather than listing per-interface IP configurations.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy