From owner-freebsd-hackers Sat Apr 1 15:48: 0 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from PacHell.TelcoSucks.org (pachell.telcosucks.org [207.90.181.5]) by hub.freebsd.org (Postfix) with ESMTP id 383B737B9EC; Sat, 1 Apr 2000 15:47:52 -0800 (PST) (envelope-from ulf@PacHell.TelcoSucks.org) Received: (from ulf@localhost) by PacHell.TelcoSucks.org (8.9.3/8.9.1) id PAA87155; Sat, 1 Apr 2000 15:47:24 -0800 (PST) (envelope-from ulf) Date: Sat, 1 Apr 2000 15:47:24 -0800 From: Ulf Zimmermann To: "Aleksandr A.Babaylov" Cc: Eric Peterson , dot@dotat.at, nik@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: No route for 127/8 to lo0 (?) - another use for loopback subn et? Message-ID: <20000401154724.P95709@PacHell.TelcoSucks.org> Reply-To: ulf@Alameda.net References: <200004012349.DAA07016@aaz.links.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200004012349.DAA07016@aaz.links.ru>; from babolo@links.ru on Sun, Apr 02, 2000 at 03:49:53AM +0400 Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 3.2-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Apr 02, 2000 at 03:49:53AM +0400, Aleksandr A.Babaylov wrote: > Eric Peterson writes: > [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Tony Finch [mailto:dot@dotat.at] wrote: > > > Nik Clayton wrote: > > >> > > >> I thought that 127/8 was the "local net", and that > > >> packets sent to any of those addresses would go via > > >> the loopback interface. That seems to be how Linux > > >> and Windows 98 do things (the only systems I can > > >> check this on at the moment). Assuming that's the > > >> case, why does FreeBSD only add a a host route to > > >> 127.0.0.1, and not a network route for 127/8? > > > > > > I did some further investigation to see how old this > > > oddity is and it seems to be the way BSD has always > > > handled the loopback interface. There's an explicit > > > exclusion in the interface initialization code in in.c > > > that gives loopback interfaces a host route instead of > > > the network route that a normal interface gets and it's > > > been that way for 15 years. > > > > I always thought it was a great waste of network address > > space to devote an entire class A network to a single > > loopback address. An idea I got from a co-worker a while > > ago was to allow the 127.* (or some smaller subnet of 127) > > to be devoted to "intra-box addresses", for example: > > > > 1. A cluster of devices/slots within a chassis > > 2. A parallel processing machine > > 3. A multi-processor computer/device This is how Cisco is using it on their Catalyst switches for example. > > > > All of the above may have inter-processor communications > > that do not need to leave the chassis. Analogous to how > > the 192.168.* (RFC1918) addresses are used for intranets, > > these addresses wouldn't be allowed to be seen by the outside > > world (i.e. outside the "chassis"), but would permit internal > > IP communication without having to waste (and configure) a > > "real" IP net number. If these devices needed to get to the > > outside world, they could use NAT (again, analogously to the > > RFC1918 case). > I use addresses from 127/8 net for p2p connections > when security is useful. > TCP/IP pakets with 127.X.X.X has only one hop to live > and never be routed by BSD kernel. > may be 0/8 net is similar - I don't remember. > > -- > @BABOLO http://links.ru/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936 Alameda Networks, Inc. | http://www.Alameda.net | Fax#: 510-521-5073 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message