From owner-freebsd-net@FreeBSD.ORG Sun Dec 2 17:02:43 2007 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C4D316A418 for ; Sun, 2 Dec 2007 17:02:43 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.166]) by mx1.freebsd.org (Postfix) with ESMTP id 74D1613C44B for ; Sun, 2 Dec 2007 17:02:41 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.2/8.14.2) with ESMTP id lB2GmkvY003730 for ; Sun, 2 Dec 2007 23:48:46 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.2/8.14.2/Submit) id lB2Gmhda003729 for net@freebsd.org; Sun, 2 Dec 2007 23:48:43 +0700 (KRAT) (envelope-from eugen) Date: Sun, 2 Dec 2007 23:48:43 +0700 From: Eugene Grosbein To: net@freebsd.org Message-ID: <20071202164843.GA3681@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: using lagg(4) with something other than IFT_ETHER 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: Sun, 02 Dec 2007 17:02:43 -0000 Hi! There is a code in src/net/if_lagg.c, lagg_port_create(): /* XXX Disallow non-ethernet interfaces (this should be any of 802) */ if (ifp->if_type != IFT_ETHER) return (EPROTONOSUPPORT); This prevents to aggregate bridges made with if_bridge(4), their if_type is IFT_BRIDGE. Why? My goal is to combine two distinct low-speed multihop internet channels beetween two FreeBSD 6.2 boxes. I alredy have two gif(4) tunnels, one per channel. I'd like to combine them to have more bandwidth. First I've found that lagg(4) cannot combine gif(4) tunnels directly, so I expected it would combine two if_bridge(4) interfaces but it wouldn't. I was in hope to "convert" gif(4) to ethernet-like using if_bridge(4)... Eugene Grosbein