TOP > 技術メモ > CentOS

CentOS

CentOS インストール

インストールは以下のサイトから
Download CentOS

CentOS 7 から ifconfig が見つからない

CentOS 7 から net-tools はデフォルトインストールじゃなくなり、
net-tools → iproute2 となった。

					# 以下互換コマンド
					# net-tools		->	iproute2
					# ifconfig		->	ip a(addr), ip l(link)
					# route			->	ip r(route)
					# netstat		->	ss
					# netstat -i	->	ip -s l(link)
					# arp			->	ip n(neighbor)
					
					# net tools を使用したい場合は yum でインストールしてしまえばよい
					yum install net-tools
VMware tools は ifconfig が使用できないとインストールできない

よく使うコマンドメモ

IPの確認
					# net-tools の場合
					ifconfig
					# iproute2 の場合
					ip addr show
ネットワークの接続・切断
					# iproute2 の場合:接続
					nmcli c up [ネットワークドライバ名(eth0)]
					# iproute2 の場合:切断
					nmcli c down [ネットワークドライバ名(eth0)]

▲ページの先頭へ