Operating System - HP-UX
1832932 Members
3288 Online
110048 Solutions
New Discussion

Re: How to use package address for outbound traffic

 
Robert Tortajada_1
Occasional Contributor

How to use package address for outbound traffic

We need to setup our cluster so that the outbound traffic uses the package IP address and not the node IP address. Can this be done?

Bob T
6 REPLIES 6
Sanjay_6
Honored Contributor

Re: How to use package address for outbound traffic

Hi Robert,

When you configure the packgae on the cluster you can define the ip forthe package which floats with the package itself. When your users want to use that package they can access the package (login etc) using the package ip and the outbound traffic will also be through that ip only.

the package ip is defined in the package control script and the varibale is
IP[0]=a.b.c.d
SUBNET[0]=a.b.c.0 # Netmask = 255.255.255.0

Here a.b.c.d is the package ip which floats with the package i.e it moves with the package from one node to another.

Hope this helps.

thanks

Robert Tortajada_1
Occasional Contributor

Re: How to use package address for outbound traffic

Yes, but that is for the inbound traffic. That IP address is aliased to the adapter and the adapter keeps the original "permenant" address.

If I was on the node and telneted out to another box, that box would see me coming from the node's "permenant" address and not the package address.

Bob T
Animesh Chakraborty
Honored Contributor

Re: How to use package address for outbound traffic

melvyn burnard
Honored Contributor

Re: How to use package address for outbound traffic

Robert, to do what you are looking for, you need to have your application software bind() to the floating IP address. This is not always an easy task.
I believe there is a section in the Managing MC/ServiceGuard manual that may be of interest to you :
http://docs.hp.com/hpux/onlinedocs/B3936-90045/B3936-90045.html

Designing Applications to Run on Multiple Systems
-> Bind to Relocatable IP Addresses

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Christopher Caldwell
Honored Contributor

Re: How to use package address for outbound traffic

Melvyn is right. The outbound IP is application specific (not MC/SG specific). It's easily doable with modern web servers, sendmail, ftp, etc. Your mileage will vary with other apps. Most "non-Internet specific" apps that I've encountered do a poor job of considering packages like MC/SG and the idea of binding to specific ports.
Sridhar Bhaskarla
Honored Contributor

Re: How to use package address for outbound traffic

How to use Floating IP?. Set it up in your application to use it. Most of the time we do not care about outbound traffic. It's the inbound traffic that is to be controlled and is done with the floating IP.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try