Last active
August 29, 2015 14:05
-
-
Save tagty/1e64ea865af72166da3f to your computer and use it in GitHub Desktop.
centos7初期設定まとめ(ip, host) ref: http://qiita.com/bouzuao/items/321425620f1d8231fbf3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# centos6の場合 | |
$ ifconfig | |
# centos7の場合 | |
$ ip a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# centos6の場合 | |
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-ethx | |
# centos7の場合 | |
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-enp3sx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HWADDR="xxxxxxxxxxxxx" | |
TYPE="Ethernet" | |
BOOTPROTO="static" | |
DEFROUTE="yes" | |
PEERDNS="yes" | |
PEERROUTES="yes" | |
IPV4_FAILURE_FATAL="no" | |
IPV6INIT="yes" | |
IPV6_AUTOCONF="yes" | |
IPV6_DEFROUTE="yes" | |
IPV6_PEERDNS="yes" | |
IPV6_PEERROUTES="yes" | |
IPV6_FAILURE_FATAL="no" | |
NAME="enp3sx" | |
UUID="xxxxxxxxxxxxxxxx" | |
ONBOOT="yes" | |
IPADDR=xxxxxxxxxxxxxxxxxx | |
NETMASK=255.255.255.0 | |
DNS1='127.0.0.1' | |
DNS2='xxxxxxxxxxxxxxxxxxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# centos6の場合 | |
$ sudo vi /etc/sysconfig/network | |
# centos7の場合 | |
$ sudo vi /etc/hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment