The IP command is based on iproute2, a collection of utilities for controlling and monitoring networking in the Linux Kernel. It is an open-source project that is closely tied to networking components in the Linux Kernel.
The utility under IP Command is “address”. This is a good starting point to learn troubleshooting network interfaces for general network issues.
This command replaces the outgoing ifconfig command that is common across Linux distributions.
This tool does not come prepacked with macOS. To get iproute2 package on the Mac, use Homebrew to install the package.
brew install iproute2mac
- ip a show
- ip a show <networking interface>
The subcommand “a” is short for “address” which is used to display information regarding networking interface.
- ip show en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 19:ef:ab:dc:2a:39 inet6 fc10::120:a132:1ab:3f17/64 secured scopeid 0x5 inet 192.168.1.3/24 brd 10.0.1.255 en0