From owner-freebsd-net Sun Feb 17 0:40:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id C9C4537B404 for ; Sun, 17 Feb 2002 00:40:07 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020217084007.VMGO1147.rwcrmhc52.attbi.com@InterJet.elischer.org>; Sun, 17 Feb 2002 08:40:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id AAA44886; Sun, 17 Feb 2002 00:26:52 -0800 (PST) Date: Sun, 17 Feb 2002 00:26:50 -0800 (PST) From: Julian Elischer To: Zviratko Cc: freebsd-net@freebsd.org Subject: Re: Ethernet bonding/load balancing on fbsd 4-stable In-Reply-To: <004101c1b766$cee780b0$0500a8c0@notes> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 17 Feb 2002, Zviratko wrote: > Hi, > is there a preferred way to do ethernet load balancing? My situation is - 2 > cable modems connected to two ethernet cards on with a machine functioning > as a NAT gateway for LAN. I tried netgraph (ng_ether with round robin and > ng_fec). With ng_ether, I achieved packets being sent via one interface and > received on another one(not what I want), ng_fec didn't work at all (it just > silently dropped all outgoing packets). ng_fec needs a cisco at the other end (or possibly another freebsd machine with ng_fec but I don't know that). > Is there another way? I already did this with linux (by using bond.c > similiar to ng_fec) and it worked under the same conditions. > Any advice would be appreciated. if your outgoing packets are going to different hosts (and not just one) you could try: ipfw add 1000 fwd {remote 1} ip from any to 0.0.1.0:0.0.1.0 out xmit fxp1 ipfw add 1001 fwd {remote 2} ip from any to 0.0.0.0:0.0.1.0 out xmit fxp1 where "remote 1" and "remote 2" are the gateways on each cable modem, (or some address that will make them go to different ports) and fxp1 is the interface tha the routing table would make them go out of normally. alternatively, the netgraph approach should work but I'm guessing that you've set up something wrong.. what is your configuration? > Zviratko > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message