CentOS 7.4 Install & Configure

CentOS 7.4 Minimum Install

Firewalls Configure

[root@controller ~]# systemctl stop firewalld.service
[root@controller ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Install Tools

[root@controller ~]# yum install net-tools wget vim ntpdate bash-completion -y

Network Configure

external:9.1.1.0/24
admin manage:10.1.1.0/24
tunnel:10.2.2.0/24
internet:10.0.2.0/24

Controller:

List all the network adapter:

[root@controller ~]# ls -al /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 284 Oct 16 02:13 /etc/sysconfig/network-scripts/ifcfg-enp0s10
-rw-r--r-- 1 root root 347 Oct 26 22:42 /etc/sysconfig/network-scripts/ifcfg-enp0s3
-rw-r--r-- 1 root root 365 Oct 19 03:27 /etc/sysconfig/network-scripts/ifcfg-enp0s8
-rw-r--r-- 1 root root 365 Oct 19 03:28 /etc/sysconfig/network-scripts/ifcfg-enp0s9
-rw-r--r--. 1 root root 254 May 3 2017 /etc/sysconfig/network-scripts/ifcfg-lo

Update the 1st network adapter:

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
HWADDR=08:00:27:6a:0e:c6
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=213e8c02-7e99-4380-a080-a845923d5088
DEVICE=enp0s3
ONBOOT=yes
IPADDR=9.1.1.61
NETMASK=255.255.255.0

Update the 2nd network adapter:

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s8
HWADDR=08:00:27:01:4e:3a
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s8
UUID=edaf67ed-cc12-41a3-97aa-b71a497d7ac0
DEVICE=enp0s8
ONBOOT=yes
IPADDR=10.1.1.61
NETMASK=255.255.255.0
GATEWAY=10.1.1.1

Update the 3rd network adapter:

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s9
HWADDR=08:00:27:66:23:8c
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s9
UUID=7f5ab86f-efb6-4a93-b09a-af2fe80ea347
DEVICE=enp0s9
ONBOOT=yes
IPADDR=10.2.2.61
NETMASK=255.255.255.0
GATEWAY=10.2.2.1

Update the 4th network adapter:

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s10
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s10
UUID=ad48bc1f-4e7b-4643-b35a-f6cd457a75a0
DEVICE=enp0s10
ONBOOT=yes

Compute:

List all the network adapter:

[root@compute ~]# ls -al /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 284 Oct 16 02:13 /etc/sysconfig/network-scripts/ifcfg-enp0s10
-rw-r--r-- 1 root root 365 Oct 18 12:35 /etc/sysconfig/network-scripts/ifcfg-enp0s8
-rw-r--r-- 1 root root 365 Oct 18 12:36 /etc/sysconfig/network-scripts/ifcfg-enp0s9
-rw-r--r--. 1 root root 254 May 3 2017 /etc/sysconfig/network-scripts/ifcfg-lo

Update the 1st network adapter:

[root@compute ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s8
HWADDR=08:00:27:b8:bd:60
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s8
UUID=edaf67ed-cc12-41a3-97aa-b71a497d7ac0
DEVICE=enp0s8
ONBOOT=yes
IPADDR=10.1.1.62
NETMASK=255.255.255.0
GATEWAY=10.1.1.1

Update the 2nd network adapter:

[root@compute ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s9
HWADDR=08:00:27:42:5a:df
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s9
UUID=7f5ab86f-efb6-4a93-b09a-af2fe80ea347
DEVICE=enp0s9
ONBOOT=yes
IPADDR=10.2.2.62
NETMASK=255.255.255.0
GATEWAY=10.2.2.1

Update the 3rd network adapter:

[root@compute ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s10
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s10
UUID=ad48bc1f-4e7b-4643-b35a-f6cd457a75a0
DEVICE=enp0s10
ONBOOT=yes

Update hostname

Controller:

[root@controller ~]# hostnamectl set-hostname controller

Compute:

[root@compute ~]# hostnamectl set-hostname compute

Controller & Compute:

[root@controller ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.61 controller
10.1.1.62 compute

synchronize system time ( important)

[root@controller ~]# yum install ntp -y
[root@controller ~]# systemctl enable ntpd && systemctl restart ntpd
[root@controller ~]# ntpq -p
[root@controller ~]# date

Leave a Reply

Your email address will not be published. Required fields are marked *