Introduction
Sometimes you need to see the details of your computer's network connections. The commands ifconfig and ip addr help you check your network interfaces and their settings like IP addresses. This helps you understand or fix network problems.
When you want to see the IP address assigned to your computer.
When you need to check if a network interface is active or down.
When you want to find the MAC address of your network card.
When troubleshooting network connection issues.
When configuring or verifying network settings on a Linux machine.