- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What IP-Address did a user connect to?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 10:11 PM
тАО10-30-2002 10:11 PM
What IP-Address did a user connect to?
if a server has got several IP addresses configured for its interfaces (e. g. Service Guard packages are running), is it possible to find out later, which ip address a user connected to? It always seems to me that the user connected to the base ip address of the machine and not to one of the additional addresses.
Regards,
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 10:20 PM
тАО10-30-2002 10:20 PM
Re: What IP-Address did a user connect to?
You can use 'netstat -na | grep
It depends on how your application or user connect to your server. You can simply use telnet to the server which one of them using the static IP and the other using the virtual IP. When you issue the 'netstat -na' command, you will see the two IP addresses are connecting by your telnet session.
tcp 0 0 172.19.128.8.23 172.19.130.119.2648 ESTABLISHED
tcp 0 0 172.19.128.21.23 172.19.130.119.1027 ESTABLISHED
From the above example, 119 is my workstation IP and 128.8 is virtual IP and 128.21 is the static IP.
Is this what you are looking for ?
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 10:47 PM
тАО10-30-2002 10:47 PM
Re: What IP-Address did a user connect to?
So during login I get 2 entries, one for the base and one for the virtual address.
Afterwards there is only the entry the base address left.
Regards,
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 11:24 PM
тАО10-30-2002 11:24 PM
Re: What IP-Address did a user connect to?
I attempted to login the telnet session with virtual IP and the connection still show in the 'netstat -na' command after I logged in. Can you show me more information before and after you logon.
Moreover, please capture the output of 'netstat -ni' as it will show the status of the primary and logical interfaces.
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 02:12 AM
тАО10-31-2002 02:12 AM
Re: What IP-Address did a user connect to?
Have you look at :-
last -R
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 03:00 AM
тАО10-31-2002 03:00 AM
Re: What IP-Address did a user connect to?
Name Mtu Network Address Ipkts Opkts
lan3 1500 160.47.14.0 160.47.14.35 907173 796701
lan1:1 1500 160.47.15.0 160.47.15.110 1843642 51582
lan1 1500 160.47.15.0 160.47.15.25 8907829 12529292
lo0 4136 127.0.0.0 127.0.0.1 20291 20291
If I connect to 160.47.15.110 (using xterm over Exceed), I get (recorded during execution of ~/.profile):
tcp 0 0 160.47.15.110.512 160.47.110.173.2063 ESTABLISHED
tcp 0 0 160.47.15.25.52308 160.47.110.173.6000 ESTABLISHED
After finished login, I get:
tcp 0 0 160.47.15.25.52308 160.47.110.173.6000 ESTABLISHED
This means that the interesting connection information is gone and only the base ip address is left.
Regards,
Andreas
P.S.: Information was recorded with "netstat -in | grep 110.173", where 160.47.110.173 is my client ip address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 03:53 AM
тАО10-31-2002 03:53 AM
Re: What IP-Address did a user connect to?
It appears you will have to capture that information in their .profile, especially if the use of "last" isn't working for you.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 03:58 AM
тАО10-31-2002 03:58 AM
Re: What IP-Address did a user connect to?
I think you can get the source and destination ip's here.
just check the attachment for the usage of nettl and netfmt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 04:08 AM
тАО10-31-2002 04:08 AM
Re: What IP-Address did a user connect to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2002 05:37 AM
тАО10-31-2002 05:37 AM
Re: What IP-Address did a user connect to?
yes, user will be connected to base address.