From owner-freebsd-net Sat May 12 17:17:24 2001 Delivered-To: freebsd-net@freebsd.org Received: from hub.lovett.com (hub.lovett.com [216.60.121.161]) by hub.freebsd.org (Postfix) with ESMTP id 451F637B423 for ; Sat, 12 May 2001 17:17:19 -0700 (PDT) (envelope-from ade@lovett.com) Received: from ade by hub.lovett.com with local (Exim 3.22 #1) id 14yjZW-000NmR-00 for freebsd-net@FreeBSD.org; Sat, 12 May 2001 19:17:18 -0500 Date: Sat, 12 May 2001 19:17:18 -0500 From: Ade Lovett To: freebsd-net@FreeBSD.org Subject: Problems with ng_one2many Message-ID: <20010512191718.D90400@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have a box with 5 old-style netgear (de) interfaces on it, one talking to the outside world, and 4 sending large quantities of data to a number of other machines on the same switch. At the moment, we're setting up a bunch of separate network addresses, one per card (de1-de4) and then use the application to bind to particular addresses when sending data to one machine. Now, what I'd like to do is to aggregate de1-de4 into a single virtual interface, with a simple round-robin setup, giving me a 400Mbit pipe to play with, and making the internal network setup a great deal easier. I first looked at Bill Paul's fec netgraph module, but this lacks a pure round-robin approach, and odd things happen when the data load is greater than a single interface. I also note that there are a number of places in the code where it's suggested that the code is not MP-safe. After a bit more investigation, I came across ng_one2many which appears to do exactly what I want, only it just refuses to work for me. The machine is running 4.3-STABLE as of a day or so, all appropriate modules have been loaded, viz: matrix 86# kldstat Id Refs Address Size Name 1 5 0xc0100000 1b143c kernel 2 1 0xc71d5000 c3000 vinum.ko 3 1 0xc72f8000 3000 ng_one2many.ko 4 2 0xc72fc000 8000 netgraph.ko 5 1 0xc7307000 3000 ng_socket.ko Yet when I try to perform the first part of the setup as documented in the manpage, I get the following: matrix 131# /usr/sbin/ngctl mkpeer de1: one2many upper one ngctl: send msg: No such file or directory matrix 132# and obviously, everything else fails to do anything. Any suggestions? I guess I could take the fec code, and rip it to bits with a pure round-robin approach, but that seems like reinventing the wheel given the existence of ng_one2many. What am I missing here? Regards, -aDe -- Ade Lovett, Austin, TX. ade@FreeBSD.org FreeBSD: The Power to Serve http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message