For example we need configure DHCP client on eth0 for getting dynamic IP’
1. Start editing /etc/sysconfig/network-scripts/ifcfg-eth0 file using text editor:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Sample configuration:
HWADDR=your MAC address DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes
Save and close just edited ifcfg-eth0 file
2. Restart network service:
# /etc/init.d/network restart
See also: How To Configure Static IP On CentOS 6