From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b68a3b08219e911,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,b68a3b08219e911,start X-Google-Attributes: gid1164f8,public From: tom@finwds01.tu-graz.ac.at (Thomas Leitner) Subject: Selecting interface on dual homed hosts: How? Date: 1996/05/17 Message-ID: <4nhlee$lbb@fstgal00.tu-graz.ac.at>#1/1 X-Deja-AN: 155333122 organization: Graz University of Technology, Austria newsgroups: comp.unix.osf.osf1,comp.sys.dec Hi, Next week we need to run an acceptance procedure for our client/server software at our customer's site. They got a couple of Alphas with both, an Ethernet interface and an FDDI interface. Both interfaces are configured with different IP addresses. In order to check the performance of our software on the two different interfaces, our TCP/IP server should be started first on the ethernet interface and then on the FDDI interface. Question: How can I tell which interface to run the server on? I guess I'd need to change my server sources to use the interface specific IP address rather than INADDR_ANY for the 'bind' call. But how can I achieve that without changing the sources? I'd need to change the interface for outgoing connections as well (the client needs to be told to use FDDI rather than Ethernet). Is there an easy way to make the FDDI the 'default' interface instead of the Ethernet interface? Or would I need some sort of static route to get this going. So to clarify the situation again: Alpha A Alpha B Alpha C Ethernet 193.80.152.201 193.80.152.202 193.80.152.160 FDDI 193.80.152.205 193.80.152.206 193.80.152.162 On "Alpha A": How do I tell my client to connect to Alpha B over FDDI rather then Ethernet? On "Alpha A:" How do I tell my server to listen on 193.80.152.205 (FDDI) on port xyz rather than on 193.80.152.201 (Ethernet). Thanks -- Tom P.S: The Alphas are DEC 3000/600 running OSF/1 3.2A. -- Tom Leitner, tom@finwds01.tu-graz.ac.at |\ _,,,---,,_ Dept. of Communications zzz. /,`.-'`' -. ;-;;,_. Graz University of Technology |,4- ) )-,_. ,\ ( `'-' Inffeldgasse 12 '---''(_/--' `-'\_) A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697 WWW home page: http://wiis.tu-graz.ac.at/people/tom.html