* Selecting interface on dual homed hosts: How?
@ 1996-05-17 4:00 Thomas Leitner
1996-05-17 4:00 ` Peter da Silva
1996-05-18 4:00 ` Hal Murray
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Leitner @ 1996-05-17 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Selecting interface on dual homed hosts: How?
1996-05-17 4:00 Selecting interface on dual homed hosts: How? Thomas Leitner
@ 1996-05-17 4:00 ` Peter da Silva
1996-05-18 4:00 ` Hal Murray
1 sibling, 0 replies; 4+ messages in thread
From: Peter da Silva @ 1996-05-17 4:00 UTC (permalink / raw)
In article <4nhlee$lbb@fstgal00.tu-graz.ac.at>,
Thomas Leitner <tom@finwds01.tu-graz.ac.at> wrote:
> 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?
Have the client specify the address of the interface on the appropriate
network. Remember, addresses are bound to interfaces, not hosts...
> On "Alpha A": How do I tell my client to connect to Alpha B over
> FDDI rather then Ethernet?
Specify the address of the FDDI card.
> 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).
Why bother? If the client isn't accessing 193.80.152.201 you'll never
get any connections.
--
Peter da Silva (NIC: PJD2) `-_-' 1601 Industrial Boulevard
Bailey Network Management 'U` Sugar Land, TX 77487-5013
+1 713 274 5180 "Har du kramat din varg idag?" USA
Bailey pays for my technical expertise. My opinions probably scare them
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Selecting interface on dual homed hosts: How?
1996-05-17 4:00 Selecting interface on dual homed hosts: How? Thomas Leitner
1996-05-17 4:00 ` Peter da Silva
@ 1996-05-18 4:00 ` Hal Murray
1996-05-20 4:00 ` Thomas Leitner
1 sibling, 1 reply; 4+ messages in thread
From: Hal Murray @ 1996-05-18 4:00 UTC (permalink / raw)
I think you probably want to set things up so that your FDDI and
Ethernet are on different IP subnets.
Then you leave the server listening to any/all addresses.
To run the test over Ether, tell the client to contact the ether address
on the server machine. To run over FDDI, use the FDDI address. The
IP routing layer will then send the packets out over the right interface
and the server will send them back the same way. (The server doesn't
know that the other interface will get to the client.)
For things like this, you probably want separate names in the
DNS database. I suggest names like Alpha-A-ether and Alpha-A-fddi,
with Alpha-A being an alias for the default.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Selecting interface on dual homed hosts: How?
1996-05-18 4:00 ` Hal Murray
@ 1996-05-20 4:00 ` Thomas Leitner
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Leitner @ 1996-05-20 4:00 UTC (permalink / raw)
Thanks everybody for your replies.
In the meanwhile I've learned the following:
1.) For the server its no problem. INADDR_ANY means that it'll accept
connects from any IP address and thus from both of the two interfaces.
So nothing needs to be changed.
2.) As for the client side: Hal Murray (murray@pa.dec.com) suggested
to put FDDI on a different IP subnet.
But can't this also be done by static route entries?
Example:
Alpha A Alpha B
Ethernet IP = a.a.a.a Ethernet IP = c.c.c.c
FDDI IP = b.b.b.b FDDI IP = d.d.d.d
The default interface is the Ethernet Interface.
When I want Alpha A to connect to Alpha B over FDDI, I do a
static route entry like:
route add -host d.d.d.d b.b.b.b -interface
I got this going without troubles. Please note that this is only a
test configuration and I'll tell our customers to better use
a separate subnet for FDDI in the future.
Thanks -- Tom
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-05-20 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-17 4:00 Selecting interface on dual homed hosts: How? Thomas Leitner
1996-05-17 4:00 ` Peter da Silva
1996-05-18 4:00 ` Hal Murray
1996-05-20 4:00 ` Thomas Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox