From owner-freebsd-net@FreeBSD.ORG Mon Oct 3 06:37:57 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 3907316A41F for ; Mon, 3 Oct 2005 06:37:57 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E6BF43D48 for ; Mon, 3 Oct 2005 06:37:56 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id j936brID066837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Oct 2005 10:37:53 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id j936brRF066836; Mon, 3 Oct 2005 10:37:53 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 3 Oct 2005 10:37:52 +0400 From: Gleb Smirnoff To: Dominic Marks Message-ID: <20051003063752.GB45345@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Dominic Marks , freebsd-net@freebsd.org References: <4452.195.12.22.194.1126884783.squirrel@www.helenmarks.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <4452.195.12.22.194.1126884783.squirrel@www.helenmarks.co.uk> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org Subject: Re: Packet loss with ng_one2many 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: Mon, 03 Oct 2005 06:37:57 -0000 On Fri, Sep 16, 2005 at 04:33:03PM +0100, Dominic Marks wrote: D> I'm trying to use two gigabit links together using ng_one2many. D> D> I haven't done this before, so here is the environment: D> D> FreeBSD 6 system with four gigabit interfaces, two of the four are going D> to be used a single interface. I've attached em0 and em1 to a gigabit D> switch and read manual pages / googled for information on how to configure D> this. D> D> I have the following script to set things up: D> D> ngctl mkpeer em0: one2many upper one D> ngctl connect em0: em0:upper lower many0 D> ngctl connect em1: em0:upper lower many1 D> ngctl msg em1: setpromisc 1 D> ngctl msg em1: setautosrc 0 D> ngctl msg em0:upper \ D> setconfig "{ xmitAlg=1 failAlg=1 enabledLinks=[ 1 1 ] }" D> D> I get 50% packet loss when using this. It seems to me like only the em0 D> interface is operating properly, although both NICs are connected and work D> alright without ng_one2many. D> D> Any clues as to what I am doing wrong / guides to implementation D> ng_one2many? Is this email related to my problem? Is your em1 interface UP? Have you configured trunk group on the switch? D> http://lists.freebsd.org/pipermail/freebsd-net/2005-February/006500.html May be. To make ng_one2many notice link state changes on Ethernet interfaces you need to set failAlg=2. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE