Better the hard truth, I say, than the comforting fantasy. — Carl Sagan, The Demon-Haunted World

Geeking out: Linux: Adding Virtual IP Addresses

Posted on 28 August 2006 by Erwin

The Linux Home Networking site has all the Linux networking references you should ever need unless you are load balancing a dozen webservers… If you’ve forgotten how to add virtual IP addresses, just create a “/etc/sysconfig/network-scripts/ifcfg-eth0:0” file. Insert the following lines, of course changing your IP Address:

DEVICE=eth0:0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.99 NETMASK=255.255.255.0

Happy networking. Covered in depth in Chapter 3 : Linux Home Networking. Enjoy.

Leave a Reply