LoginSignup
46
51

More than 5 years have passed since last update.

これからはifconfigではなくipを使う時代だ!

Last updated at Posted at 2014-12-07

新しいfedoraを使うと、ifconfigコマンドが無いのでどのようにしてIPアドレスを確認すれば良いか分からなかった

ifconfigなどのnet-tools系のコマンドはobsoleteになってしまったらしく、これからはiproute2系のipコマンドを使うようになるようだ

コマンド比較表

net-tools iproute2
ifconfig ip l (ip link)
ifconfig -a ip a show (ip addr show)
ifconfig eth0 up ip link set eth0 up
netstat ss
netstat -i ip -s link
netstat -l ss -l
netstat -r ip r (ip route)
route [add|del] ip route [add|del]
route -n ip route show
arp -n ip n (ip neighbor)

参考

net-tools | The Linux Foundation
http://www.linuxfoundation.org/collaborate/workgroups/networking/net-tools

今までありがとう「ifconfig」 - DMMツチノコブログ
http://tsuchinoko.dmmlabs.com/?p=1387

46
51
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
46
51