とんちゃんといっしょ

Cloudに関する技術とか日常とかについて書いたり書かなかったり

Macで `ip` コマンド

Linuxip コマンドになったのにMacはifconfigだったりするのでなかなか ip に慣れないところ、知り合いに以下のツールを教えてもらった。

github.com

% /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
% brew install iproute2mac
% ip a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet 127.0.0.1/8 lo0
    inet6 ::1/128
    inet6 fe80::1/64 scopeid 0x1
...

これでMacでも ip コマンドが使える様になるのでようやく自分の中で ip コマンドが根付きそうである。