----- Original Message ----- From: "Gary Stanley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message