/etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO=dhcp/static

‘add the following when configuring static
IPADDR=192.168.X.X
NETMASK=255.255.255.0
GATEWAY=192.168.25.1
ONBOOT=yes ‘ enables networking on boot

‘enable networking interface if

up eth0

OR

nmcli con up eth0

‘restart networking

service network restart