Operating System - HP-UX
1844932 Members
1560 Online
110233 Solutions
New Discussion

System physical IP addres and package address

 
Mohd M.
Occasional Contributor

System physical IP addres and package address

Dear All

If I have a system that has physicall address x.x.x.2 and I have a service guard running a package with the x.x.x.9. does the remote system connected to application on the package server see the physical IP address 2 or they see the package address 9.
In other words does the traffic originating from my application put the physical or package address in the header.

regards

M.Mahgoub
5 REPLIES 5
Prashanth.D.S
Honored Contributor

Re: System physical IP addres and package address

Hi,

Header will contain the package address/ip..both physical ip and package ip's are treated different from each other.. from a remote pc you can ping the package ip and test it out.

Best Regards,
Prashanth
Rajeev  Shukla
Honored Contributor

Re: System physical IP addres and package address

Hi Mahgoub,
It really depends what name(IP) your remote system uses to connect to this server. If it connects using x.x.x.2 then you'll see the 2 in the traffic other wise its 9.
Now since a packet is built at a lower level it will contain the MAC address instead of IP address which really is the same for both the IP address.
You can see this better if you have lsof installed. You can run lsof -p |grep ESTABLISHED that will show the IP address its talking to.

Cheers
Rajeev
melvyn burnard
Honored Contributor

Re: System physical IP addres and package address

Please edit your ITRC profile and modify the user name to be someting more appropriate than:

Root password in console
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
dictum9
Super Advisor

Re: System physical IP addres and package address

good thread.

please consider assigning pts to the replies.

Ron Cohen
New Member

Re: System physical IP addres and package address

I guess what you would like to is to identify which package you are connected to. to do this
put the following in your ~/.profile:
net=lsof -p $PPID 2>/dev/null|egrep ' 0u .*TCP'|sed 's/.*\(put_the_name_wiledcard_here\):shell.*/\1/g'

then loop through case on $net