From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9325,439000366fad0a79,start X-Google-Attributes: gidf9325,public X-Google-Thread: fee84,2dafc7c9b88b2ac X-Google-Attributes: gidfee84,public From: amartineau@ccr.hydro.qc.ca (Alain Martineau) Subject: Re: How to use 2 ethernet interfaces ? Date: 1996/01/03 Message-ID: #1/1 X-Deja-AN: 133940577 sender: news@ireq.hydro.qc.ca (Netnews Admin) x-nntp-posting-host: macmartineau.ccr.hydro.qc.ca references: organization: Hydro Quebec newsgroups: comp.unix.osf.osf1,comp.protocols.tcp-ip In article , amartineau@ccr.hydro.qc.ca (Alain Martineau) wrote: > I am trying to set a server with two ethernet interfaces. Ideally the > clients would try one or the other to connect. Each is connected to a > different IP subnet, and the clients are on yet another one subnet. My > problem is that when I disconnect one, the other is not reacheable from > the clients, whether or not I run gated or routed or nothing. Also the > disconnected interface never seems to be marked down. Anybody could give > me a lead on this ? Thanks. I realize this is not clear enough, so, more details: host1 host2 | | | | |-+-|--+------+---+-|--| network 201.102.21.0 |---+--|-+----|-+---+--| network 201.102.22.0 | | | | routera routerb | | |-------+------+----+---| network 131.195.0.0, subnet 131.195.141.0 | subnet mask 255.255.255.0 hosta On host1, the interfaces are configured as follows: # ifconfig ln0 ln0: flags=c63 inet 201.102.21.11 netmask ffffff00 broadcast 201.102.21.255 ipmtu 1500 # ifconfig ln1 ln1: flags=c63 inet 201.102.22.11 netmask ffffff00 broadcast 201.102.22.255 ipmtu 1500 (Don't try, they are not reachable from the Internet) When both interfaces on host1 are connected, anyone can ping anyone. When I unplug let's say ln1, ln0 can't be pinged ( or connected to in any sort of way ) from the same net ( host2 for instance, or the routers ), but not from any outsider, i.e. hosta. Even a connection that was opened before freezes. I tried to run gated to implement some kind of routing inside the host1 and host2 servers but the unplugged interface never comes down. I have seen it starting to work once about 7 minutes after the unplugging. But I cannot repeat even this poor achievement consistently. Most of the time a netstat -rn will freeze and never return anything when one interface is unplugged. What I try to do is have some sort of redundancy over network failures. It should be quick to be useful. DECnet used to do this naturally, moving to TCP/IP is no progress in this situation. Another way to achieve this might be to open the connections from host1 and host2 by specifying the local interface in the opening call, but I can't find a way to do this. Anyone knows how ? -- Alain Martineau Hydro Quebec amartineau@ccr.hydro.qc.ca