http://www.ucarp.org/project/ucarp <
> UCARP allows a couple of hosts to share common virtual IP addresses in order to provide automatic failover. It is a portable userland implementation of the secure and patent-free Common Address Redundancy Protocol (CARP, OpenBSD’s alternative to the patents-bloated VRRP). <
> Strong points of the CARP protocol are: very low overhead, cryptographically signed messages, interoperability between different operating systems and no need for any dedicated extra network link between redundant hosts. <
> <
> Linux Flavor: Ubuntu <
> <
> Per far girare UCARP su Debian/Ubuntu, bisogna creare un'interfaccia virtuale. Per fare cio basta inserire in {{{/etc/network/interfaces}}} qualcosa simile a: {{{ # Virtual Address auto eth0:1 iface eth0:1 inet static address 10.10.10.1 netmask 255.255.255.0 }}} riavviare {{{networking}}} da {{{inet.d}}} con {{{/etc/init.d/networking restart}}} <
> dando il comando {{{ucarp --help}}} si hanno le seguenti informazioni:<
> {{{ root@newmate:/etc# ucarp --help ucarp 1.1 - Dec 26 2004 --interface= (-i ): bind interface --srcip= (-s ): source (real) IP address of that host --vhid= (-v ): virtual IP identifier (1-255) --pass= (-p ): password --preempt (-P): becomes a master as soon as possible --addr= (-a ): virtual shared IP address --help (-h): summary of command-line options --advbase= (-b ): advertisement frequency --advskew= (-k ): advertisement skew (0-255) --upscript= (-u ): run to become a master --downscript= (-d ): run to become a backup --deadratio= (-r ): ratio to consider a host as dead --shutdown (-z): call shutdown script at exit --daemonize (-B): run in background --facility= (-f): set syslog facility (default=daemon) Sample usage: Manage the 10.1.1.252 shared virtual address on interface eth0, with 1 as a virtual address idenfitier, mypassword as a password, and 10.1.1.1 as a real permanent address for this host. Call /etc/vip-up.sh when the host becomes a master, and /etc/vip-down.sh when the virtual IP address has to be disabled. ucarp --interface=eth0 --srcip=10.1.1.1 --vhid=1 --pass=mypassword \ --addr=10.1.1.252 \ --upscript=/etc/vip-up.sh --downscript=/etc/vip-down.sh Please report bugs to bugs@ucarp.org. }}} in seguito avviare ucarp con: <
> '''DA COMPLETARE PRESTO...''' dato che ho un piccolo problema con gli indirizzi IP... per farlo partire all'avvio inserire la stringa in un file in {{{/etc/rc2.d/S99NomeFileDiAvvio}}} o creare uno script e chiamare lo script da {{{rc2.d/S99NomeFileDiAvvio}}} per esempio.