CentOS 6 minimal by default does not come with the network pre-configured.
In this guide, we will be showing you how to set a static IP address in CentOS 6 minimal.
We will first set up the Ethernet by editing the configuration file below.
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
And then configure the default gateway
# vi /etc/sysconfig/network
And then configure the DNS server
# vi /etc/resolv.conf
Once those changes are made, we need to restart the network services
# /etc/init.d/network restarted
If the IP address is not being used by any other device in the network, it will be assigned to your CentOS system.
You can confirm it by issuing the command below