From owner-freebsd-hackers Fri Aug 23 07:55:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA00140 for hackers-outgoing; Fri, 23 Aug 1996 07:55:54 -0700 (PDT) Received: from etinc.com (etinc.com [204.141.244.98]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA28898 for ; Fri, 23 Aug 1996 07:47:20 -0700 (PDT) Received: from dialup-usr11.etinc.com (dialup-usr11.etinc.com [204.141.95.132]) by etinc.com (8.6.12/8.6.9) with SMTP id KAA29278; Fri, 23 Aug 1996 10:46:39 -0400 Date: Fri, 23 Aug 1996 10:46:39 -0400 Message-Id: <199608231446.KAA29278@etinc.com> X-Sender: dennis@etinc.com X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: vovik@cmr.kiev.ua (Vladimir Jakovenko) From: dennis@etinc.com (Dennis) Subject: Re: IP over IP Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Or you could use Netcon's IPX proxy, get a sync card, sell the Cisco and not worry about any of this stuff..... :-) Dennis >> Hi, all! >> >> Sorry for long posting, but it seems we really have a problem here. >> >> Some time ago our University was given access to Internet. We have >> only 8+16 IP adress from ISP. Our network is happened to look like >> it is shown on (simplified) figure below. > >Why not configure a second interface (say, a tun0 device or something) as a >dummy interface? > >> Internet >> ^ 2 Mb/s >> 10 Mb/s | >> ---o------------------o------ | >> +-----+------+ +-------+-------+ | >> | oberon | | r2d2 | | >> | FBSD-2.1.5 | | CISCO 2511 +------+ >> | | | | >> [I] +-+----------+ +---------------+ InterNet >> | >> -------|----------------------------------------------------------- >> [II] | IntraNet >> | >> | >> | +---------------+ >> +------+-----+ | cad | >> | inferno + ----... | FBSD-2.1.5 | >> | Novel 3.12 | | | >> | +-----... +-------+-------+ >> +------+-----+ | >> 10.0.0.9| | >> | +---------------+ +-------+-------+ >> | | space | | ee | >> | | FBSD-2.1.5 | | FBSD-2.1.5 | >> | | | | | >> | +-------+-------+ +-------+-------+ >> +---------------o------------------------o----- >> 10.0.0.10 10.0.0.11 > >It is not clear if oberon has a direct connection to "space" and "ee", or if >"inferno" sits between them. Let me redraw this for you. > >Okay, so you have 8 addresses on the 10mbps. I'm assuming you do not want >to burn them. > > 10.0.0.? network > |-----------------------------------------------------| > | .1 | .2 | .3 | .4 > -------- -------- -------- -------- > |oberon| |space | |ee | |infern| > -------- -------- -------- -------- > .3 | | .1 | | > <---------- | 10.0.1.? > to r2d2 |----------| >network W.X.Y.? | .2 > -------- > |mybox | > -------- > >You have a "backbone" that is 10.0.0.X, and various subnets on your >routers.. I have shown ONE for simplicity, 10.0.1.X. You have a node, >10.0.1.2, which is connected on that network, and you want it on the >Internet. > >So youu want "mybox" to be on the Internet as A.B.C.D, but it has an >address of 10.0.1.2. > >First, r2d2 has to route all 16 addresses to oberon's address, W.X.Y.3 > >route add -net A.B.C.0 -netmask 0xfffffff0 W.X.Y.3 > >Now, oberon can control assignments by routing individual IP's to various >routers. Route "A.B.C.D" to "space". > >route add -host A.B.C.D 10.0.0.2 > >Now "space" needs to route it to "mybox". > >route add -host A.B.C.D 10.0.1.2 > >Now "mybox" gets packets destined for A.B.C.D. Configure "mybox" to accept >them. You may be able to do it with an alias Ethernet address (dunno). > >ifconfig ed0 alias A.B.C.D netmask 0xffffffff > >maybe, or create a dummy tun device or something.. I don't know what the >"best" way to do it is, there are several ways though and I use a number >of them. > >Remember that you can do this multiple times for multiple nodes. It is >SIMPLY a routing problem. Easy beans. And best of all - unlike Ethernet >you do not waste the first and last addresses on your A.B.C.? block of 16 >addresses. > >... JG > > ---------------------------------------------------------------------------- Emerging Technologies, Inc. http://www.etinc.com Synchronous Communications Cards and Routers For Discriminating Tastes. 56k to T1 and beyond. Frame Relay, PPP, HDLC, and X.25 for BSD/OS, FreeBSD and LINUX