Network configuration under RHEL 6 has slightly changed. No configuration found if you perform an minimum installation.Networking is managed with NetworkManager by default. On a server, using GUI tools is best to avoid when possible.
To make your networking work out of the box, some changes are needed in a few files.
To make the network interface to configure available with the right information, add any changes in /etc/sysconfig/networking-scripts/ifcfg-eth0. This file should contain at least the following lines :
IPADDR=IP address server
NETMASK= its netmask
BROADCAST= its broadcast
NM_CONTROLLED set to no just tells the system not to use NetworkManager as default networking management tool.
Next step, add the following information in /etc/sysconfig/network :
GATEWAY= default gateway for the server
HOSTNAME=FQDN of the server
Do not forget to populate /etc/hosts file with localhost, your server’s IP address, its FQDN and aliases
Add the IP addresses of your DNS servers in /etc/resolv.conf :
After any changes on the networking configuration, restart the related service :
root@localhost:~#service restart network
To check that the requested network interfaces are up and well configured, check their status :
root@localhost: ~#service status network
If you need to add more parameters to the configuration files above, have a look at this document available on your server :