From owner-freebsd-net@FreeBSD.ORG Thu Mar 29 23:55:22 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7A6216A400 for ; Thu, 29 Mar 2007 23:55:22 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 74D6213C4AD for ; Thu, 29 Mar 2007 23:55:22 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 016C21CC58; Fri, 30 Mar 2007 11:55:20 +1200 (NZST) Date: Fri, 30 Mar 2007 11:55:20 +1200 From: Andrew Thompson To: freebsd-net@freebsd.org Message-ID: <20070329235520.GD97061@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Subject: CFT: new trunk(4) 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, 29 Mar 2007 23:55:22 -0000 Hi, Here is a patch to add OpenBSD's trunk(4) interface, and also includes LACP support which came from agr(4) on NetBSD. Im interested in anyone who wants to test this and in particular lacp mode if you have a switch that supports it. http://people.freebsd.org/~thompsa/if_trunk-20070330b.diff The procedure to build this is (on an recent current) cd /usr/src patch -p0 < if_trunk-20070330b.diff build kernel and world... install kernel and world... To create a lacp trunk ifconfig trunk0 create ifconfig trunk0 up ifconfig trunk0 trunkproto lacp ifconfig trunk0 trunkport fxp0 ifconfig trunk0 trunkport fxp1 ifconfig will show you the status of the trunk, for lacp the port will be forwarding when it reaches COLLECTING and DISTRIBUTING. There are other trunk modes failover,loadbalance and roundrobin (see the man page). Any feedback would be great. cheers, Andrew