Configuring Network Settings

Configuring Selinux

You’ll have to set Selinux mode to “disabled” by configuring the selinux file located in /etc/sysconfig directory.

Open the file and make changes:-

sudo vi /etc/sysconfig/selinux

Update the following line:-

SELINUX=disabled

Save the file and exit.

Reboot the machine.

Disabling the Firewall

To disable the firewall on each host in your cluster, perform the following steps on each host.

For iptables, save the existing rule set:

Disable the firewall:

RHEL 7 compatible:

Set Static Hostname and edit Network Configuration

Now verify…

Create and edit a file /usr/sbin/hosts.sh and set it executable

Paste the below script in hosts.sh

Edit rc.local to run the hosts.sh script at boot for CentOS 7+, rc.local is not set as executable by default!

Add below command inside /etc/rc.d/rc.local

Last updated