IP Command

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.

Installation

This tool does not come prepacked with macOS. To get iproute2 package on the Mac, use Homebrew to install the package.

brew install iproute2mac

Usage

  • ip a show
  • ip a show <networking interface>

The subcommand “a” is short for “address” which is used to display information regarding networking interface.

Examples

  • ip show en0

Example Output

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s