From owner-freebsd-questions Tue Apr 24 14:47: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.akalink.com (akalink.com [64.23.81.14]) by hub.freebsd.org (Postfix) with SMTP id AC76237B423 for ; Tue, 24 Apr 2001 14:46:59 -0700 (PDT) (envelope-from jfortin@akalink.com) Received: (qmail 94706 invoked from network); 24 Apr 2001 21:45:27 -0000 Received: from unknown (HELO node00) (64.23.81.14) by akalink.com with SMTP; 24 Apr 2001 21:45:26 -0000 Message-ID: <008901c0cd08$5a348e00$0200320a@node00> Reply-To: "Jonathan Fortin" From: "Jonathan Fortin" To: "Wai Chan" Cc: References: Subject: Re: setup ng_one2many Date: Tue, 24 Apr 2001 17:48:51 -0400 Organization: Akalink Communications MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Wai, EXAMPLES ------------- The following commands will set up Ethernet interfaces fxp0 to deliver packets alternating over the physical interfaces corresponding to net- working interfaces fxp0 through fxp3: # Plumb nodes together ngctl mkpeer fxp0: one2many upper one ngctl connect fxp0: fxp0:upper lower many0 ngctl connect fxp1: fxp0:upper lower many1 ngctl connect fxp2: fxp0:upper lower many2 ngctl connect fxp3: fxp0:upper lower many3 # Allow fxp1 through fxp3 to xmit/recv fxp0 frames ngctl msg fxp1: setpromisc 1 ngctl msg fxp3: setpromisc 1 ngctl msg fxp2: setpromisc 1 ngctl msg fxp1: setautosrc 0 ngctl msg fxp3: setautosrc 0 ngctl msg fxp2: setautosrc 0 # Configure all four links as up ngctl msg fxp0:upper \ setconfig "{ xmitAlg=1 failAlg=1 enabledLinks={ 1 1 1 1 } }" # Bring up interface ifconfig fxp0 192.168.1.1 netmask 0xfffffffc With a similar setup on a peer machine (using the address 192.168.1.2), a point-to-point Ethernet connection with four times normal bandwidth is achieved. Later. ----- Original Message ----- From: "Wai Chan" To: Sent: Tuesday, April 24, 2001 5:16 PM Subject: setup ng_one2many > My freeBSD 4.2 box is connected to two ISP providers with two NICs. The > setup is similar to this: > > |--------------- www.xxx.yyy.zzz > | > |---------| > ----| FreeBSD | > | 4.2R | > |---------| > | > |---------------- aaa.bbb.ccc.ddd > > After researching a bit, I think it is possible to use netgraph's > ng_one2many to aggregate/combine the two physical interfaces to form a > virtual interface for round robin load balancing. > > Is there anyone successfully tried this? What do I need to compile in the > kernel? I would appreciate it if someone could contribute a sample > configuration or guide. > > Thanks! > > best wishes, > Wai Chan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message