Re: Determine Source Network Adapter
From: Dale Talcott (aeh_at_quest.cc.purdue.edu)
Date: 06/24/04
- Next message: yijing_at_altern.org: "Re: Device driver won't load on 6-slot model 630"
- Previous message: JW: "X windows problem"
- In reply to: Kent: "Re: Determine Source Network Adapter"
- Next in thread: yijing_at_altern.org: "Re: Determine Source Network Adapter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Jun 04 08:53:01 EST
kentgeorge@hotmail.com (Kent) writes:
>Each interface has it's own IP address. They are on two separate
>networks. IE. en0 = 10.1.1.1, and en1 = 10.2.2.2. Once I've
>telnet'd into the server (assuming I've just lost my brain) how do I
>know which IP I used to telnet into the server?
>> > Does anyone know a way to tell what network adapter you connected to
>> > on an AIX server? (Running AIX 5.2)
>> >
>> > I'm dealing with a server that has multiple ethernet adapters, and I
>> > want to create a generic script to launch an application that requires
>> > knowing your source network address.
Look at the idlogin perl scripts that are part of the lsof package.
Check the archives of this group for locations for lsof. One source
is <ftp://lsof.itap.purdue.edu/>.
Your question was a little unclear. Do you care about the IP address
of the remote user, or the network interface the connection was made
through? In theory, given the right topology and routing tables, any IP
address could connect via any interface. That is, it is tricky to discover
exactly which interface a packet arrived through. It is easier to learn
which interface your reply packets will use. And simpler still is to
learn the IP address at the other end of the connection. The last is
what you can use lsof for.
-- Dale Talcott, IT Research Computing Services, Purdue University aeh@purdue.edu http://quest.cc.purdue.edu/~aeh/
- Next message: yijing_at_altern.org: "Re: Device driver won't load on 6-slot model 630"
- Previous message: JW: "X windows problem"
- In reply to: Kent: "Re: Determine Source Network Adapter"
- Next in thread: yijing_at_altern.org: "Re: Determine Source Network Adapter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|