[1028] in linux-net channel archive
Re: One Segment two class C addresses.
daemon@ATHENA.MIT.EDU (Matti E. Aarnio [OH1MQK])
Fri Sep 1 22:07:40 1995
From: "Matti E. Aarnio [OH1MQK]" <mea@mea.cc.utu.fi>
To: macleajb@EDnet.NS.CA
Date: Fri, 1 Sep 1995 16:17:27 +0300 (EET DST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <m0soIek-00013LC@DrJES.EDnet.NS.CA> from "James B. MacLean" at Aug 31, 95 08:04:22 pm
> Hello to everyone,
>
> I am setting up a machine which uses one class C address on its eth0
> while I also have a second Linux box using a different class C address on its
> eth0. Both boxes use the same physical segment.
Start thinking in terms of CIDR (Classless InterDomain Routing), in
which suitable adjacent networks can be bound together, of they can
fit under same netmask. Linux can do it, several old systems can't...
> Attempting to get them to talk, I've tried many routing layouts, first
> up always something like:
> route add -net 198.166.54.0 netmask 255.255.255.0 eth0
> for the box using 198.166.55.0 and the reverse :
> route add -net 198.166.55.0 netmask 255.255.255.0 eth0
> for the box using 198.166.54.0.
Naeh, both should use:
ifconfig eth0 198.166.5x.xx netmask 255.255.254.0
route add -net 198.166.54.0 netmask 255.255.254.0 dev eth0
> Starting imediately after these commands I can ping back and forth no problem,
> but attempt to run a telnet or something more will at some point very shortly
> thereafter stop any access between the machines.
>
> Oddly I've seen similar behaviour using ipalias too. Ofcourse that becomes a
> bit different in the setup.
>
> I was hoping someone wouldn't mind pointing out where my logic is flawing so
> that I can get these 2 nets (or atleast these 2 boxes) talking to one another.
Alternate is to run IP-forwarding, and proxy ARPing on either of
the machines -- that is, turning it into a router..
> Thnxs in advance,
> JES
> --
> James B. MacLean macleajb@ednet.ns.ca
> Department of Education
> Nova Scotia, Canada
> B3M 4B2 Linux : A better UNIX than NT
/Matti Aarnio <mea@utu.fi>