Linux: Show IP Address

Note

The net-tools linux package is an old one, and provides a large number of standard commands:

  • arp
  • ifconfig
  • iptunnel
  • iwconfig
  • nameif
  • netstat

net-tools was deprecated in 2011. While is it still available it is advisable to move on to more modern commands.

Another standard command needed for common troubleshooting in every OS - in Linux you show IP addresses with:

ip a
ip a
ip a
ip a

If missing from your distribution or container, install with:

dnf -y install iproute2
apt -y install iproute2
apk add iproute2
pacman -Syu iproute2