vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. Any ideas would be appreciated. Thanks -k |
| |||
| does each adapter have its own IP address or are they used as one? Kent wrote: > 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. > > Any ideas would be appreciated. Thanks > -k |
| |||
| 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? Thanks for the post! -k Jim85CJ <jim_85cj@NOSPAMyahoo.com> wrote in message news:<nmEBc.8902$bs4.8894@newsread3.news.atl.earth link.net>... > does each adapter have its own IP address or are they used as one? > > Kent wrote: > > > 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. > > > > Any ideas would be appreciated. Thanks > > -k |
| |||
| Why do you need to know? If you need to know for diagnostic purposes, Unplug or disable the ports, one at a time, and try the telnet to get in and see which way works. The incoming interface has little to do with selecting the device for an outgoing connection. That depends on the routing tables: which is the default route, and how routes are assigned to the other interfaces. sol Kent wrote: > > 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? > > Thanks for the post! > -k > > Jim85CJ <jim_85cj@NOSPAMyahoo.com> wrote in message news:<nmEBc.8902$bs4.8894@newsread3.news.atl.earth link.net>... > > does each adapter have its own IP address or are they used as one? > > > > Kent wrote: > > > > > 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. > > > > > > Any ideas would be appreciated. Thanks > > > -k |
| |||
| 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/ |
| ||||
| well once connected on the server, type netstat -an to see the active connections, and look for the IP adresses connected to the server. To ease the determination, perhaps you should use various hostnames on your system, for example localhost-eth0.domaine.com for IP#1 localhost-eth1.domaine.com for IP#2 regards kentgeorge@hotmail.com (Kent) wrote in message news:<241315d6.0406231223.1f812ff1@posting.google. com>... > 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? .. > > > > > > Any ideas would be appreciated. Thanks > > > -k |