From owner-freebsd-net@FreeBSD.ORG Fri Oct 28 19:28:36 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 033B616A420 for ; Fri, 28 Oct 2005 19:28:36 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDD9743D46 for ; Fri, 28 Oct 2005 19:28:35 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.117]) ([10.251.23.117]) by a50.ironport.com with ESMTP; 28 Oct 2005 12:28:35 -0700 X-IronPort-Anti-Spam-Filtered: true Message-ID: <43627BE3.9080905@elischer.org> Date: Fri, 28 Oct 2005 12:28:35 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: spoggle References: <6b8e8f4f0510281209l57703c36j817ae577ba1e3a77@mail.gmail.com> In-Reply-To: <6b8e8f4f0510281209l57703c36j817ae577ba1e3a77@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: distributed bridging 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: Fri, 28 Oct 2005 19:28:36 -0000 spoggle wrote: >Greetings, > >I'm trying to create a configuration that would bridge interfaces on >different hosts. Each host would have at least two interfaces, one >would be the inter-host connection, the remaining would be the bridged >interfaces, so that a packet appearing on host a's bridged interface >would also appear on host b, c, etc. bridged interfaces and vice >versa. > >My equipment to try this is on order, so it's still somewhat of a >brain exercise. > >I would like to use if_bridge (for it's STP) and I was thinking of >bridging the local interfaces and then using netgraph (eiface?) >connected to some other plumbing like l2tp to connect the remote >bridges together. > >Does this sound feasible? Anyone have any other suggestions on how to >pull this off? > >I've also considered hacking if_bridge to allow the configuration of >remote bridges as pseudo ports, but not sure I'll have time. > > on machine A you have: NIC A 1.1.1.1 NIC B 10.0.0.1 on machine B you have: NIC A 2.2.2.2 NIC B 10.0.0.2 On each machine use a modification of /usr/share/examples/netgraph/ether.bridge so that one link of each bridge is set to an ng_ksocket instead of a real interface. then send messages to each or the sockets to connect to each other with UDP. how to do this is in /usr/share/examples/netgraph/udp.tunnel by combining the two you should create a tunnel between the two bridges which should result in a single bridged network. that should be about all you need. >spoggle >_______________________________________________ >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" > >