From owner-freebsd-net@FreeBSD.ORG Tue Mar 9 10:10:58 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AD5F16A4CE for ; Tue, 9 Mar 2004 10:10:58 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id F38E743D77 for ; Tue, 9 Mar 2004 10:10:55 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc11) with ESMTP id <2004030918104901100fdp7ke>; Tue, 9 Mar 2004 18:10:54 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA64348; Tue, 9 Mar 2004 10:10:47 -0800 (PST) Date: Tue, 9 Mar 2004 10:10:46 -0800 (PST) From: Julian Elischer To: Justin Walker In-Reply-To: <30D08A02-71E1-11D8-A9B6-00306544D642@mac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: One IP used on more than one interface (gif0 and lo0) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 18:10:58 -0000 On Tue, 9 Mar 2004, Justin Walker wrote: > > On Tuesday, March 9, 2004, at 01:55 AM, Frrodo Baggins wrote: > > > Hi, > > > > What happens if we configure an alias on lo0: > > > > ifconfig lo0 alias 192.168.5.1 netmask 255.255.255.0 > > > > and then use the same IP on gif0: > > What happens if you have the same address on two different houses on > the same street? that isn't the question.. it's "why have different numbers on houses on differnt streets?" It is in fact common practice to number all your P2P links using teh address of one of your broadcast interfaces.. this works well, saves you an address and you have a simpler routing table. Point to point links route using the REMOTE address and don't care about teh local address so this always works. julian (lo0 is a P2P link) > > Regards, > > Justin > > -- > /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large > \ / Ribbon Campaign > X Help cure HTML Email > / \ > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >