1. “vi /etc/sysconfig/network-scripts/ifcfg-eth0”
With an example config below:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=
NETMASK=
2. After modifying IPADDR and NETMASK information, use the next command for changes to take effect.
“/etc/rc.network restart”