Setting up a static IP address on your RHEL or CentOS is simple.
This how-to guide requires that you have administrative access to the Linux operating system.
1. Inside the RHEL Operating system, open the terminal and head to /etc/sysconfig/network-scripts
3. In this sample configuration, we will need to specifically change or add the following:
BOOTPROTO=none ONBOOT=yes IPADDR=x.x.x.x PREFIX=n GATEWAY=x.x.x.x DNS1=x.x.x.x