Operating System - HP-UX
1753585 Members
6369 Online
108796 Solutions
New Discussion юеВ

hard coding IP for outgoing traffic in mc/sg

 
SOLVED
Go to solution

hard coding IP for outgoing traffic in mc/sg

I have a situation that requires outgoing traffic from my machine running mc/sg to have the "source" ip as that of the virtual ip. Is that possible? The application accepts traffic addressed to the vip but when it sends traffic, it shows it as coming from the primary ip of the server, not the package ip and the traffic is rejected by the customer. Is there a way to configure the box so it xmits traffic with a source ip of the package?
rp8420 11.23 mc/sg A.11.17.00

thanks,
Pat
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: hard coding IP for outgoing traffic in mc/sg

Add a static route instead - that will "force" it out your virtual ip.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor
Solution

Re: hard coding IP for outgoing traffic in mc/sg

Shalom Pat,

I'd ask you to define source for me.

In reality, a floating IP address is a virtual IP address. It is in non-technical terms, the child of the parent which is the actual IP address of the system.

The MAC address matches the parent.

I don't think there is a way to configure serviceguard to do this.

I like Geoff's suggestion, but suggest you run a tcpdump analysis on the traffic afterwards, not from the local machine and see what the traffic looks like.

A netstat -an | grep on a client system would be very interesting to look at.

I see the definition of success in this situation as a bit fuzzy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
melvyn burnard
Honored Contributor

Re: hard coding IP for outgoing traffic in mc/sg

to do this you would need to get your application to "bind" to the virtual ip address.
This is discussed in the Managing Serviceguard manual, Appendix C Page 447 of
http://docs.hp.com/en/B3936-90117/B3936-90117.pdf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!

Re: hard coding IP for outgoing traffic in mc/sg

I tried the static route with no success.
I will look into the mc/sg manual. thanks for the insight.