From owner-freebsd-net@FreeBSD.ORG Thu Nov 17 17:35:45 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 8099A16A41F for ; Thu, 17 Nov 2005 17:35:45 +0000 (GMT) (envelope-from baldur@foo.is) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAD8E43D46 for ; Thu, 17 Nov 2005 17:35:44 +0000 (GMT) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 2B1FD28448; Thu, 17 Nov 2005 17:35:40 +0000 (GMT) Received: by gremlin.foo.is (Postfix, from userid 1000) id 4053028441; Thu, 17 Nov 2005 17:35:35 +0000 (GMT) Date: Thu, 17 Nov 2005 17:35:35 +0000 From: Baldur Gislason To: Brian Candler Message-ID: <20051117173535.GF97528@gremlin.foo.is> References: <1131541588.996.13.camel@localhost.localdomain> <20051110124903.GB67086@uk.tiscali.com> <1131629107.878.22.camel@localhost.localdomain> <20051117135738.GH5197@obiwan.tataz.chchile.org> <1132239963.819.18.camel@localhost.localdomain> <20051117152357.GA8209@uk.tiscali.com> <1132242723.819.45.camel@localhost.localdomain> <20051117162748.GA8417@uk.tiscali.com> In-Reply-To: <20051117162748.GA8417@uk.tiscali.com> User-Agent: Mutt/1.4.2.1i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, score=-5.9 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Cc: freebsd-net@freebsd.org, Jon Otterholm , Jeremie Le Hen Subject: Re: arp-proxy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 17:35:45 -0000 On Thu, Nov 17, 2005 at 04:27:48PM +0000, Brian Candler wrote: > On Thu, Nov 17, 2005 at 04:52:03PM +0100, Jon Otterholm wrote: > > Scenario#1: > > -I have a range of ip's, for example 215.10.10.0 - 215.10.10.255. > > -I want to distrubute theese ip's to my customers via DHCP. > > -They are all atached to me via a VLAN-trunk on a unique VID > > -I have 200+ customers. > > > > If I was to subnet these addresses so that all the sustomers would get > > their own IF (with an IP) in my router and their own IP I could create a > > bunch of /30-nets but each customer would take up 4 IP's (net, G/W, > > CustomerIP, Broadcast) - and that is a big vaste of IP's in my opinion. > > Albeit one that you can sensibly justify to a registry for your purpose. > > If you could get clients to run PPPoE, then you wouldn't need to allocate > any /30 subnets to the VLANs, and you could give each customer a single /32 > IP (either statically or from a pool). Multiple customers could share a VLAN > which might be useful in future, e.g. if one VLAN serves a building with > multiple users. PPP has no home in a broadband network IMO. It's an ugly (telco) approach to things. An always-on connection shouldn't have a session based tunnel to make it work. > > > If I instead could create a pseudo bridge with a "mother if" acting as > > gateway, distrute IP's via DHCP (ISC?) I could reduce the number of IP's > > and administration when adding new customers. > > > > Anyone with a souloution or revelation? > > I think it's tricky, given the additional constraints you gave in your other > E-mails. In particular, you said that MAC address xx:xx:xx:xx:xx:xx which > originates on VLAN X must never appear as a source MAC address on any other > VLAN, because that would confuse the switching infrastructure which links > the bundle of VLANs to the customer sites. (i.e. the VLANs are not true > VLANs because they are not properly isolated from each other) > > Given DHCP, you're not statically assigning a particular IP or range of IPs > to a particular vlanN interface: so you can't "route add" to send traffic > for IP address x.x.x.x down VLAN Y. Hence you need to do dynamic bridging, > but with the MAC source address masquerading. > > Now, this is not the Linux proxy-arp solution described in the link you > gave; it's something very different. I'm not aware of any implementation of > this on any platform. I do know an implementation of this. Packetfront's ASR line of layer 3 switches does exactly this. It is a DHCP relay and ARP proxy, you can have multiple switches on the same distribution ring but it's all IP, using OSPF for managing the paths, no broadcast traffic makes it between different ports. These are specific switches designed for ethernet and fiber to the home networks. I think the routing approach in FreeBSD is brilliant, but it can be a little limiting in some aspects. It is a bit reluctant to break the rules of how routing is normally done. I have had situations where I wanted to make an ARP entry for a host that was not on a subnet I had configured on any interface (as in make a host route pointing to a mac address and a certain interface) I've also wanted to have multiple interfaces on the same physical network with different addresses on the same subnet. Now, these are both ugly hacks to which there are better approaches, but those approaches don't always apply. Baldur