I use the command ip link
in Linux. Now I want it on Mac OS X, but the Mac OS X terminal doesn't have ip
. What should I use instead?
Linux – ip command in Mac OS X terminal
linuxmacosterminal.app
linuxmacosterminal.app
I use the command ip link
in Linux. Now I want it on Mac OS X, but the Mac OS X terminal doesn't have ip
. What should I use instead?
Best Answer
You can use
brew
to installiproute2mac
. It's actually a Python wrapper that provides a very similar API that you'll likely find very familiar to theip
tool included withiproute2
on Linux.Installation
Usage
Once installed you'll be given a command line tool that for all intent purposes mimics the
ip
command on Linux.Examples
Show IP addresses on interface en0.
Show details about link en1.
References