Date: Sat, 27 Apr 2002 19:28:45 -0600 From: "John Nielsen" <oniblerz@attbi.com> To: <freebsd-hackers@FreeBSD.ORG>, "Gary Stanley" <gary@outloud.org> Subject: Re: load balancing with 2 nic cards possible? Message-ID: <025801c1ee54$0a6661f0$0900a8c0@max> References: <5.1.1.2.2.20020426234504.029f7c30@208.141.46.3>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Gary Stanley" <gary@outloud.org> To: <freebsd-hackers@FreeBSD.ORG> Sent: Friday, April 26, 2002 9:47 PM Subject: load balancing with 2 nic cards possible? > Is it possible to split the load of IP traffic with 2 ethernet cards on a > 4.x machine? I'm new to "load balancing" in a sense, however, I'd like to > try something that seems more "robust" The netgraph one2many framework allows you to aggregate 2 or 4 NICs together even on an unmanaged switch. Obviously, this is only really beneficial if the machine is serving several clients attached to the same switch or if there is another machine set up similarly (also on the same switch), since unmanaged switches generally only have one uplink port. See the ng_one2many(4) manpage for details. Following is a script I use to set this up (I call it from rc.local). fxp0 is the "primary" interface and rl0 is the "secondary". JN --------------------- #!/bin/sh ifconfig rl0 up kldload /modules/ng_ether.ko kldload /modules/ng_one2many.ko ngctl mkpeer fxp0: one2many upper one ngctl connect fxp0: fxp0:upper lower many0 ngctl connect rl0: fxp0:upper lower many1 ngctl msg rl0: setpromisc 1 ngctl msg rl0: setautosrc 0 ngctl msg fxp0:upper setconfig "{xmitAlg=1 failAlg=1 enabledLinks =[ 1 1 ] }" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?025801c1ee54$0a6661f0$0900a8c0>