Fedora CentOS virtual ips
From D3xt3r01.tk
WHY
Because I don't want to set up the virtual ips each time at reboot.
HOW
In /etc/sysconfig/network-scripts you should have some files named ifcfg-eth0:1 , ifcfg-eth0:1 ( or eth1:0 , eth1:1 depending on your card name ) that should look like this:
ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
HWADDR=00:22:19:11:6E:B9
ONBOOT=yes
IPADDR=174.120.208.203
NETMASK=255.255.255.248
ifcfg-eth0:2
DEVICE=eth0:2
BOOTPROTO=static
HWADDR=00:22:19:11:6E:B9
ONBOOT=yes
IPADDR=174.120.208.204
NETMASK=255.255.255.248