Packet loss with ng_one2many

Gleb Smirnoff glebius at FreeBSD.org
Sun Oct 2 23:37:57 PDT 2005


On Fri, Sep 16, 2005 at 04:33:03PM +0100, Dominic Marks wrote:
D> I'm trying to use two gigabit links together using ng_one2many.
D> 
D> I haven't done this before, so here is the environment:
D> 
D> FreeBSD 6 system with four gigabit interfaces, two of the four are going
D> to be used a single interface. I've attached em0 and em1 to a gigabit
D> switch and read manual pages / googled for information on how to configure
D> this.
D> 
D> I have the following script to set things up:
D> 
D> ngctl mkpeer em0: one2many upper one
D> ngctl connect em0: em0:upper lower many0
D> ngctl connect em1: em0:upper lower many1
D> ngctl msg em1: setpromisc 1
D> ngctl msg em1: setautosrc 0
D> ngctl msg em0:upper \
D>         setconfig "{ xmitAlg=1 failAlg=1 enabledLinks=[ 1 1 ] }"
D> 
D> I get 50% packet loss when using this. It seems to me like only the em0
D> interface is operating properly, although both NICs are connected and work
D> alright without ng_one2many.
D> 
D> Any clues as to what I am doing wrong / guides to implementation
D> ng_one2many? Is this email related to my problem?

Is your em1 interface UP?
Have you configured trunk group on the switch?

D> http://lists.freebsd.org/pipermail/freebsd-net/2005-February/006500.html

May be. To make ng_one2many notice link state changes on Ethernet interfaces
you need to set failAlg=2.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-net mailing list