LoginSignup
128
103

More than 3 years have passed since last update.

CentOS ifconfig 使えない!?

Last updated at Posted at 2015-06-10

1. 環境とか

  • CentOS 7

2. ifconfig が not found

ipアドレスを調べるために ifconfig 打ってみる

command
$ ifconfig
-bash: ifconfig: command not found

え!?not found!?

いろいろ調べてみると、net-tools系のコマンドは標準でインストールされなくなったらしい。

3. 解決方法

net-toolsのyumパッケージが残っているので、yumを使ってインストールする

command
$ yum install net-tools

インストール後、再度コマンドを叩いてみる

command
$ ifconfig

無事にIPアドレスを調べることができた

久しぶりにLinux触ったら、わけがわからないよー!

4. ちなみに

ifconfig の代わりとなった新しいコマンドは下記です。

command
$ ip addr show

覚えないとな、、、

128
103
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
128
103