Need to setup floating IP

Hi,

Below is the Theory that I need to implement.

Load balancing websites can be achieved by putting 2 entries in your DNS, for instance:

www.example.com 192.168.1.1
www.example.com 192.168.1.2

then DNS will do a round Robin between them, but should either host fail then your will see intermittent loss when surfing, as the DNS will still point to either IP in turn.

If you want failover, for instance:

host1.example.com 192.168.1.1 (master)
host2.example.com 192.168.1.2 (slave)

and the floating ip as you call it

float.example.com 192.168.1.3

Then you would need scripts that run as often as you can on slave, to see if master is still there (sometimes referred to as a heartbeat).

if the Master drops, then it needs run a script to bring the floating ip up on the slave to resume service.

A Google search for heartbeat, failover should yield somehow to on the subject.

I have two HPUX boxes with each having one network card.

Can someone please help me provide the steps inorder to setup a floating IP on my system.

Please keep it detailed as I am naive.

Moving to HP-UX forum..