From owner-freebsd-questions Wed Dec 6 07:24:13 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA19703 for questions-outgoing; Wed, 6 Dec 1995 07:24:13 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA19595 for ; Wed, 6 Dec 1995 07:24:06 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA09402; Wed, 6 Dec 1995 10:23:57 -0500 Date: Wed, 6 Dec 1995 10:23:57 -0500 From: "Garrett A. Wollman" Message-Id: <9512061523.AA09402@halloran-eldar.lcs.mit.edu> To: Archie Cobbs Cc: freebsd-questions@freebsd.org Subject: half routing In-Reply-To: <199512060044.QAA17690@bubba.tribe.com> References: <199512060044.QAA17690@bubba.tribe.com> Sender: owner-questions@freebsd.org Precedence: bulk < said: > What is the correct way to do half-routing with the FreeBSD "ifconfig" > and "route" commands? There is no `correct' way to do this because the Internet architecture does not permit it. The software makes some attempt to support this model, but since the model is fundamentally broken, I'll not waste any time in trying to make the software do it. > For example, suppose you have a point-to-point link between two networks, > say 192.168.1.0 and 192.168.2.0, and gateways "gw1" and "gw2" on either > end, but you don't have any other IP addresses for which to number the > interfaces on the (inside) ends of the point-to-point link: As much as I hate to say it, this is a case when you should use a private network number. (Just make for damn sure that it doesn't leak out into the Internet, which is no problem if you're doing static routing.) > 192.168.1.0 --*[ gw1 ]*---point-to-point-link---*[ gw2 ]*-- 192.168.2.0 > no address here ^ no address here ^ 10.0.0.1 10.0.0.2 -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant