This is a discussion on src_ip problem..... please help. within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, The picture here shows my problem on aix: http://camp.homelinux.net/src_ip-problem-public.jpg I'm wondering if there might be a way to ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, The picture here shows my problem on aix: http://camp.homelinux.net/src_ip-problem-public.jpg I'm wondering if there might be a way to fill in the virtual ip_src from the Network IP layer.... My aix admins say the only way to do this is to remove the virtuals and add NICs for each application.... Is this really my only option? Thanks for your time.... -- foobee |
| |||
| foobee wrote: > The picture here shows my problem on aix: > > http://camp.homelinux.net/src_ip-problem-public.jpg > > I'm wondering if there might be a way to fill in the > virtual ip_src from the Network IP layer.... My aix admins > say the only way to do this is to remove the virtuals > and add NICs for each application.... > > Is this really my only option? Ok, let's see if we understand this right. Each server (server1, server2) has one NIC. Each NIC has two IP addresses. You want "application" on server1 to open a socket to "service" on server2 and "service" to see the source ip address of the data as a specific one of the two IP addresses on server1? If that's how it is the answer is easy - change application to bind() to a specific IP address on server1 before it opens the socket to server2. Even if you don't control the source code to the application, many mainstream applications allow you to bind() a specific address. If not, please post more detail. |
| |||
| > Ok, let's see if we understand this right That's it.... You got it... > If that's how it is the answer is easy - change application to bind() to > a specific IP address on server1 before it opens the socket to server2. Ok... I have looked @ this a bit.... Looks like I need to do more research in this area... So all the applications run in the Java websphere env..... one application / JVM.... Any idea how to set the bind() address for a complete JVM? > Even if you don't control the source code to the application, many > mainstream applications allow you to bind() a specific address. I don't control the source... Thanks soooooo much for your time and thoughts.... -- foobee |
| |||
| You can find info on binding Websphere to a specific ip address here: http://www-1.ibm.com/support/docview...=UTF-8&lang=en |
| ||||
| Ok.... I though that I had a configuration issue on my machine and the IBM guy (pmr 30146,344) was going to help me w/ it.... But after talking more w/ him..... He said the configuration is correct and we have JUST verified that it is NOT possible from w/ in websphere to set the src_ip with this configuration: http://www-1.ibm.com/support/docview...=UTF-8&lang=en Basically he wasn't sure of the src_ip result.... And I just proved it doesn't work... listening... He also said he has talked w/ colleagues and they know of no way from w/in websphere to set the src_ip.... So where do we go from here? 1) Write a cutpoint in AspectJ (Aspect Orientated Programming) for the java.net.Socket constructors that redirects to the existing java.net.Socket constructor that I have working. This would allow us to build dependencies for all connections including LDAP, Oracle, VCom, HTTP, etc.... With no changes to the applications. 2) Write some code.. somewhere... that populates an http header which can be used for only HTTP dependency mapping.... This could done w/ an Aspect or may require application code changes. Any thoughts? -- foobee |