From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 24 15:18:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B79516A4CE; Thu, 24 Jun 2004 15:18:46 +0000 (GMT) Received: from smtp-gw-cl-c.dmv.com (smtp-gw-cl-c.dmv.com [216.240.97.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AE3143D1F; Thu, 24 Jun 2004 15:18:46 +0000 (GMT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) i5OFIW9D035441; Thu, 24 Jun 2004 11:18:32 -0400 (EDT) (envelope-from sven@dmv.com) From: Sven Willenberger To: Dan Nelson In-Reply-To: <20040624143343.GA56406@dan.emsphone.com> References: <1088030164.29367.57.camel@lanshark.dmv.com> <20040624143343.GA56406@dan.emsphone.com> Content-Type: text/plain Date: Thu, 24 Jun 2004 11:17:27 -0400 Message-Id: <1088090247.8744.7.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 X-Mailman-Approved-At: Fri, 25 Jun 2004 11:51:03 +0000 cc: freebsd-net@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: using netgraph to connect 2 physical interfaces into one virtual interface X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 15:18:46 -0000 On Thu, 2004-06-24 at 09:33 -0500, Dan Nelson wrote: > In the last episode (Jun 23), Sven Willenberger said: > > I am having a lot of trouble trying to make the following work (after > > some exhaustive googling etc) > > > > Goal: 2 interfaces (em0 and em1) to be "combined" or bonded into one > > virtual interface so as to provide both increased throughput and > > failover. Both physical ports connected to either the same or different > > switches with a virtual gateway (the configuration for which is being > > haandled separately). > > > > What I have tried (using netgraph) and the results: > > > > 1) (from the ng_one2many manpage): > > 2) adapted from freebsd-security (derkweiler) http://www.derkeiler.com/Mailing-Lists/FreeBSD-Security/2004-01/0084.html thread : > > > > So my question is, without trying to get into ng_fec (which I understand > > will also need hardware support on the other end -- blades, etc), how > > ng_fec needs just as much hardware support as one2many: the system at > the other end must be able to handle port aggregation, and must be able > to be manually configured. Both nodes do the same thing, in slightly > different ways. > Actually I was wondering if one2many needed the same support that ng_fec needs - and you answered that question, albeit inversely. I did get ng_fec to run (using only three lines) and I don't have that issue of (DUP!) in my packets or any performance hit as long as fec0 is ifconfig'd with arp and the two physical interfaces are on the same or connected switch(es). ngctl mkpeer fec dummy fec (which spits out an error about not being able to name the fec0 node) ngctl msg fec0: add_iface '"em0"' ngctl msg fec0: add_iface '"em1"' ifconfig fec0 up So what would the equivalent be using ng_one2many and how do I get the same throughput and lack of DUP packets that I can achieve with ng_fec. My understanding was that ng_fec was being deprecated in favor of ng_one2many ? Sven