[841] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Re: multi-homed linux machine?

daemon@ATHENA.MIT.EDU (Erik Nygren)
Sun Dec 11 09:33:29 1994

To: yandros@MIT.EDU
Cc: linux-dev@MIT.EDU
In-Reply-To: Your message of "Sun, 11 Dec 1994 05:27:51 EST."
             <9412111027.AA11434@yaz-pistachio.MIT.EDU> 
Date: Sun, 11 Dec 1994 09:33:05 -0500
From: Erik Nygren <nygren@MIT.EDU>


> So, say I had this network card that I wanted to stick into a linux
> machine that already has a network card, to give it two IP addresses
> and two names and all...  Would this `work'?  Which `name' would I get
> if I sat down at the console and logged on?  How could I switch to the
> other one (if I could).

I'd guess you could have both active at once if you creatively
played with your routing table.  Maybe route to the router
through one interface and route to the rest of the subnet through 
the other interface?  That way you would have two addresses on the
same subnet and both would be usable at the same time.
Maybe something like:

route add -net 18.239.0.0 eth0 netmask 255.255.0.0 metric 1
route add -host 18.239.0.1 eth1 metric 0
route add default gw 18.239.0.1 metric 2

I haven't tested this so it may not work.  You might have to play with
it a bit.  The biggest problem may be with servers that need to
authenticate you and get confused with you living in two places.

	--- Erik



home help back first fref pref prev next nref lref last post