In this article we will decribe how to setup network in CentOS. This is very important because it is the beginning of work with the server. So here that you need to do:
To work with ifconfig and any other network utilites it is necessary to install net-tools package.
To change configuration of /etc/sysconfig/network-scripts you should edit file ifcfg-eth0. Content of this file looks like:
In the lines ipaddr, netmask and gateway write exactly data you need to configure
To set up multyply addresses you should create a copy of interface and edit this copy:
In the end to have two addresses in one net, you must have to connections ifcfg-eth0 and icfg-eth0:0