45
45

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

綺麗な/etc/sysconfig/network-scripts/ifcfg-eth0の書き方

Last updated at Posted at 2014-08-15

CentOS6の/etc/sysconfig/network-scripts/ifcfg-eth0はいくつか記述する方法があるが、綺麗な書き方。
NetworkManagerは使わない。

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.100
PREFIX=24
GATEWAY=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
ARPCHECK=no

参考までに/etc/sysconfig/networkはこんな感じ。
何も触ってない。

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
45
45
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
45
45

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?