Which modern Linux command shows the IP addresses assigned to each network interface?

Prepare for the Network Operations Management Test with multiple choice questions, each with explanations. Assess your knowledge on protocols, backup strategies, and operational management. Enhance your readiness for the exam!

Multiple Choice

Which modern Linux command shows the IP addresses assigned to each network interface?

Explanation:
Modern Linux uses the iproute2 toolkit, and the command to view IP addresses on each interface is ip addr show (often abbreviated ip a). This lists every network interface and prints its assigned addresses under inet for IPv4 and inet6 for IPv6, along with the prefix length and scope. It handles multiple addresses per interface and both address families in a consistent, global view, which is why it’s the standard tool for this task across contemporary distros. Other utilities like ipconfig (Windows), ifconfig (older, deprecated), or netstat don’t provide this clear, per-interface IP listing in modern setups.

Modern Linux uses the iproute2 toolkit, and the command to view IP addresses on each interface is ip addr show (often abbreviated ip a). This lists every network interface and prints its assigned addresses under inet for IPv4 and inet6 for IPv6, along with the prefix length and scope. It handles multiple addresses per interface and both address families in a consistent, global view, which is why it’s the standard tool for this task across contemporary distros. Other utilities like ipconfig (Windows), ifconfig (older, deprecated), or netstat don’t provide this clear, per-interface IP listing in modern setups.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy