From owner-freebsd-questions Tue Apr 24 15:24:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hpu450.hpu.edu (hpu450.hpu.edu [198.199.136.21]) by hub.freebsd.org (Postfix) with ESMTP id 3958337B42C for ; Tue, 24 Apr 2001 15:24:21 -0700 (PDT) (envelope-from waichan@hpu.edu) Received: from sniffit (sniffit.nt.hpu.edu [10.2.1.7]) by hpu450.hpu.edu (8.8.8+Sun/8.8.7) with SMTP id MAA08190; Tue, 24 Apr 2001 12:24:14 -1000 (HST) From: "Wai Chan" To: "Jonathan Fortin" Cc: Subject: RE: setup ng_one2many Date: Tue, 24 Apr 2001 12:24:14 -1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <008901c0cd08$5a348e00$0200320a@node00> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks! If I only have 2 interfaces, Do I need to assign IP address for fxp0 and fxp1 first then assign the 3rd IP on aggregated fxp1 (eg: 64.123.123.123 for fxp0, 65.123.123.123 for fxp1, and 64.123.123.124 for aggregated fxp0)? BTW, let me try to make condition a bit more clear: |--- www.xxx.yyy.zzz (ISP A) -----| | | |---------| | | FreeBSD | | | 4.2R | |--Internet |---------| | | | |--- aaa.bbb.ccc.ddd (ISP B) -----| Will ng_one2many work for such condition? best wishes, Wai Chan System Administrator, Network Technology Hawaii Pacific University +1 (808) 566-2423 -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Jonathan Fortin Sent: Tuesday, April 24, 2001 11:49 AM To: Wai Chan Cc: questions@FreeBSD.ORG Subject: Re: setup ng_one2many 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message