Operating System - HP-UX
1834165 Members
2385 Online
110064 Solutions
New Discussion

Creating a VIP (virtual IP)

 
SOLVED
Go to solution
Bob Carback
Frequent Advisor

Creating a VIP (virtual IP)

How is a virtual IP created, that is, one IP to failover from one server to another. I created using ifconfig lan0:1...... on one of the servers. Do I do the same (with the same IP) on the other server?
4 REPLIES 4
IT_2007
Honored Contributor

Re: Creating a VIP (virtual IP)

Edit netconf file reflecting Virtual IP. You can duplicate what it has for lan0. But make sure that you change instance nos like this

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=XXXXXXXXXXXX
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=XXXXXXXXXXX
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0

INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=XXXXXXXXXXXXX
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=XXXXXXXXXXXX
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
Patrick Wallek
Honored Contributor
Solution

Re: Creating a VIP (virtual IP)

The virtual IPs actually should be created / configured within your SG packages. You don't manually create the virtual IP on the server.

Each package should have its own IP address configured in the package control script. That way the appropriate IP address is configured on whichever machine the package is starting on.
Torsten.
Acclaimed Contributor

Re: Creating a VIP (virtual IP)

You must use serviceguard to use this functionality of a IP address failover to another host. Without this software, you will simply duplicate the IP address and generate a lot of trouble.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bob Carback
Frequent Advisor

Re: Creating a VIP (virtual IP)

I've modified the package control script and this worked. Thanks