Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 17:48:51 -0400
From:      "Jonathan Fortin" <jfortin@akalink.com>
To:        "Wai Chan" <waichan@hpu.edu>
Cc:        <questions@freebsd.org>
Subject:   Re: setup ng_one2many
Message-ID:  <008901c0cd08$5a348e00$0200320a@node00>
References:  <LNEJKGADPHKMLOFLNLFLOEMDEOAA.waichan@hpu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008901c0cd08$5a348e00$0200320a>