Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 12:24:14 -1000
From:      "Wai Chan" <waichan@hpu.edu>
To:        "Jonathan Fortin" <jfortin@akalink.com>
Cc:        <questions@FreeBSD.ORG>
Subject:   RE: setup ng_one2many
Message-ID:  <LNEJKGADPHKMLOFLNLFLKEMGEOAA.waichan@hpu.edu>
In-Reply-To: <008901c0cd08$5a348e00$0200320a@node00>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <waichan@hpu.edu>
To: <freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LNEJKGADPHKMLOFLNLFLKEMGEOAA.waichan>