Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2002 22:24:18 +0100
From:      "Zviratko" <q@seznam.cz>
To:        <freebsd-net@freebsd.org>
Subject:   Re: Ethernet bonding/load balancing on fbsd 4-stable
Message-ID:  <006901c1b7f9$75b991c0$0500a8c0@notes>
References:  <Pine.BSF.4.21.0202170018540.39539-100000@InterJet.elischer.org> <003501c1b7a8$4431d5f0$0500a8c0@notes> <20020217205620.GN413@overlord.e-gerbil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I just got it to work by using ng_one2many:

ifconfig ed1 up lladdr 00:88:e8:83:63:c0
ifconfig ed2 up lladdr 00:88:e8:83:63:c0
kldload /modules/ng_ether.ko
ngctl mkpeer ed1: one2many upper one
ngctl connect ed1: ed1:upper lower many0
ngctl connect ed2: ed1:upper lower many1
ngctl msg ed2: setpromisc 1
ngctl msg ed1: setpromisc 1
ngctl msg ed2: setautosrc 0
ngctl msg ed1:upper \
setconfig "{ xmitAlg=1 failAlg=1 enabledLinks=[ 1 1 1 1 ] }"
ifconfig ed1 my.ip.is.here netmask 255.255.255.0

the only prerequirement is to have both interfaces UP and WITHTOUT IP!
(otherwise it works only for local LAN, but you will have problem if trying
to route traffic to a gateway - my situation). Other problem is, that if you
have the same net on both interfaces in the beginning ( I have 62.24.72.0/24
on both) and you need to route via 62.24.72.1 as gateway, the only way is to
set this script to use the FIRST initialized interface, otherwise you
cannot(I can't) set gateway only for the second interface...
Ufff...  ;-)

The result is a fine-working-non-laggy-double-speed-line :)
beware: if you use cable modem, you need to have the same speed subscribed
for both of them, otherwise, you will receive a whole bunch of DUP!s :) and
both modems need to be on the same bridge.

Thx all for help
Zviratko


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006901c1b7f9$75b991c0$0500a8c0>