あんなにお世話になった net-tools (ifconfig , netstat , route , arp ) が非推奨になっており、rhel7系からは削除されるらしい。
なので、net-tools (ifconfig , netstat , route , arp ) -> iproute2 ( ip , ss )の主要コマンド対応一覧を書いてみた
net-tools | iproute2 | 備考 |
---|---|---|
ifconfig | ip l (ip link) | 起動中のIF情報表示 |
ifconfig -a | ip a show (ip addr show) | 全てのIF情報表示 |
ifconfig eth0 up | ip link set eth0 up | 指定したIF起動(この場合,eth0) |
netstat | ss | 有効な接続(ESTABLISHED)情報表示 |
netstat -i | ip -s link | IF毎のパケット統計表示 |
netstat -l | ss -l | LISTEN状態の接続情報表示 |
netstat -r | ip r (ip route) | ルーティングテーブル表示 |
route [add,del] | ip route [add,del] | 経路の追加/削除 |
route -n | ip route show | 出力をIPのみに(DNS逆引きなし) |
arp -n | ip n (ip neighbor) | 出力をIPのみに(DNS逆引きなし) |
と、ここまで書いてみましたが、↓こちらの方が詳しく(網羅的に)記載されています
ifconfigを置き換えるipコマンド早見表Do-you-linux!?
その他(参考) - iproute2 の配布元
最近のlinuxであれば、最初から含まれているはずですけどね
https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.16.0.tar.gz