1838655 Members
3547 Online
110128 Solutions
New Discussion

Re: IP

 
System Dude_1
Frequent Advisor

IP

I have created a physical Ip of 10.10.10.10 on my lan0 and createda virtual ip of 10.10.10.11 on top of my physical IP. My application is communicating thru 10.10.10.11 but replying thru 10.10.10.10. Is there any way to force the reply to use the 10.10.10.11 instead of 10.10.10.10?
Performance Issue on HP-UX 10.20
6 REPLIES 6
Bill McNAMARA_1
Honored Contributor

Re: IP

It's possibly related to the order that the /etc/hosts is configured in.

Make sure that 10.10.10.11 appears before 10.10.10.10

Later,
Bill
It works for me (tm)
System Dude_1
Frequent Advisor

Re: IP

If I have multiple virtual ip then how?
Performance Issue on HP-UX 10.20
Domenico_5
Respected Contributor

Re: IP

hy guys

you have a 11i correct?

on this release this configuration is not supported. We are waiting a grat patch too!!!!!!


regards
Bill McNAMARA_1
Honored Contributor

Re: IP

this is just a guess really, I've not worked on VIPs, but have come across a similiar type of pb with a different applications ha solution..

Try adding an alias in /etc/hosts such as
app 10.10.10.11
app 10.10.10.10

and trying again..
If that doesn't work, I have no idea..

Later,
Bill
It works for me (tm)
System Dude_1
Frequent Advisor

Re: IP

we are running on 11
Performance Issue on HP-UX 10.20
Christopher Caldwell
Honored Contributor

Re: IP

Given that an IP is available on the system, the IP an application uses to communicate is dependent on the flags the application developer passes to the bind command in the application.

If the application binds with the INADDR_ANY constant (generally the case for older apps), the application will listen on any IP available, but will only speak on the base IP of the system.

If the application actually binds to a specified address (generally the case for newer Internet apps like web servers), the application will actually speak on the IP(s) you specified in the configuration of the application.

See the bind system call for more information.