Suppose that the NIC that needs to bind multiple IP is eth0, please create a file named ifcfg-eth0:0 in the/etc/sysconfig/network-scripts directory.
Examples of the content are:
Device= "eth0:0"
Nm_controlled= "Yes"
onboot= "Yes"
Ipaddr= "112.100.103.168"
Bootproto= "None"
netmask= "255.255.255.0"
Type= "Ethernet"
Gateway= "112.100.103.129"
dns1=168.100.63.1
If you want to be simpler, you can
cp/etc/sysconfig/network-scripts/eth0/etc/sysconfig/network-scripts/eth0:0
Where the device is the name of the device,
IPADDR the IP address of this device,
Broadcast is the broadcast address,
Netmask is a subnet mask,
Onboot means to start automatically when the system starts.
If you need to bind more than one IP address,
Just add a eth0:x to the file name and the device in the file.
Linux can support up to 255 IP aliases
Make sure you restart the network after the change is complete.
/etc/init.d/networking restart