Unix Technical Forum

src_ip problem..... please help.

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 06:38 AM
foobee
 
Posts: n/a
Default src_ip problem..... please help.

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 06:39 AM
Simon Marchese
 
Posts: n/a
Default Re: src_ip problem..... please help.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 06:39 AM
foobee
 
Posts: n/a
Default Re: src_ip problem..... please help.

> 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 06:39 AM
aixdude@yahoo.com
 
Posts: n/a
Default Re: src_ip problem..... please help.

You can find info on binding Websphere to a specific ip address here:

http://www-1.ibm.com/support/docview...=UTF-8&lang=en

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 06:40 AM
foobee
 
Posts: n/a
Default Re: src_ip problem..... please help.

Just what I needed..... Thanks to all!

-- foobee

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 06:44 AM
foobee
 
Posts: n/a
Default Re: src_ip problem..... please help.

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... The tech note we now know is ONLY for
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com