Here is an example, just make sure to change your IP Address that you want to use and your netmask if applicable.
DEVICE=”eth0″ NM_CONTROLLED=”yes” ONBOOT=yes TYPE=Ethernet BOOTPROTO=static NAME=”System eth0″ IPADDR=192.168.1.44 NETMASK=255.255.255.0Next you need to go in and configure your default gateway :
Again here is an example, make sure to keep your hostname what you set it up to be :
NETWORKING=yes HOSTNAME=centos6 GATEWAY=192.168.1.1Last thing you will need to do is set up your nameservers :
Here is an example, this example is using google’s DNS server and a home router
nameserver 220.127.116.11 nameserver 192.168.1.1And finally you will need to restart the network service :