From owner-freebsd-net@FreeBSD.ORG Fri Sep 10 09:57:11 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3FA116A4CE for ; Fri, 10 Sep 2004 09:57:11 +0000 (GMT) Received: from marcopolo.finecogroup.it (marcopolo.finecogroup.it [193.108.186.201]) by mx1.FreeBSD.org (Postfix) with SMTP id 696D443D31 for ; Fri, 10 Sep 2004 09:57:10 +0000 (GMT) (envelope-from m.amendola@finecogroup.it) Received: (qmail 22130 invoked from network); 10 Sep 2004 09:57:08 -0000 Received: from m.amendola@finecogroup.it by marcopolo by uid 1001 with qmail-scanner-1.14 (sweep: 2.10/3.63. Clear:. Processed in 8.081245 secs); 10 Sep 2004 09:57:08 -0000 Received: from unknown (HELO EXCHFINGRP.finecogrp.it) (192.168.209.206) by marcopolo.finecogrp.it with SMTP; 10 Sep 2004 09:57:00 -0000 Received: from fingrp87 ([192.168.215.35]) by EXCHFINGRP.finecogrp.it with Microsoft SMTPSVC(5.0.2195.6713); Fri, 10 Sep 2004 11:55:38 +0200 From: "amendola maurizio" To: Date: Fri, 10 Sep 2004 11:56:55 +0200 Message-ID: <000b01c4971c$84ad87e0$23d7a8c0@finecogrp.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-OriginalArrivalTime: 10 Sep 2004 09:55:38.0176 (UTC) FILETIME=[5311A400:01C4971C] Subject: netgraph and high availability(bonding) problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 09:57:12 -0000 Hi at all I have some problem to configure two network card in high availabilty = mode. I have done many test with some configurations but I desn't work. I have Freebsd 5.2.1 and I have also add a patch realized from Evgeny Dolgopiat about ng_one2many.c and ng_one2many.h. Test n.1 (with 2 cards on single switch(yes, i know that is not a best ha solution)=20 In this case I have had packets duplication but I have HA to get or put = a net cable. Test n2. (with 2 cards on differnet switch) In this case I = have not packets duplication but I haven't HA to get or put a net cable: if I = get a secondary cable It works but if I get the primary cable it doesn't = work all. This the configuration that I have testes: #from README of ng_one2many patch #!/bin/sh #Build ng_one2many module kldload /usr/src/sys/modules/netgraph/one2many/ng_one2many.ko #Stat about module kldstat #Create one pseudo interface ngctl mkpeer xl0: one2many upper many #Assegno il nome xl0 al nodo o2m ngctl name xl0: upper o2m #Creo un link tra xl0 e o2m usando many0 ngctl connect xl0: o2m: lower many0 #Creo un link tra xl1 e o2m usando many1 ngctl connect xl1: o2m: lower many1 #Metto in promisc mode xl1 ngctl msg xl1: setpromisc 1 #Metto xl1 in autosrc=3D0 ngctl msg xl1: setautosrc 0 ifconfig xl0 inet 192.168.168.239 netmask 255.255.255.0 ngctl msg o2m: setconfig { xmitAlg=3D1 failAlg=3D2 } # set heartbit algo ngctl msg o2m: sethbconfig { timeout=3D2 period=3D3 } # set time between ngctl list route add default 192.168.168.220 _______________________________________________ #IDS:port bonding and taps #in etherchannel ok # #!/bin/sh kldload /usr/src/sys/modules/netgraph/fec/ng_fec.ko kldstat ngctl list ngctl mkpeer fec dummy fec ngctl msg fec0: add_iface '"xl0"' ngctl msg fec0: add_iface '"xl1"' ngctl msg fec0: set_mode_inet ngctl msg fec0: set_mode_mac ngctl msg fec0: set_mode_inet6 ngctl list ifconfig fec0 promisc ifconfig fec0 up ifconfig fec0 inet 192.168.168.239 netmask 255.255.255.0 route add default 192.168.168.220 __________________________________________________________ #!/bin/sh kldload /usr/src/sys/modules/netgraph/ether/ng_ether.ko kldload /usr/src/sys/modules/netgraph/one2many/ng_one2many.ko kldstat ngctl list ifconfig xl0 promisc -arp up ifconfig xl1 promisc -arp up ngctl mkpeer . eiface hook ether ngctl mkpeer ngeth0: one2many lower one ngctl connect xl0: ngeth0:lower lower many0 ngctl connect xl1: ngeth0:lower lower many1 ngctl list ifconfig ngeth0 up ifconfig ngeth0 inet 192.168.168.239 netmask 255.255.255.0 ifconfig -a = route add default 192.168.168.220 = _____________________________________________ #Taosecurity #!/bin/sh kldload /usr/src/sys/modules/netgraph/ether/ng_ether.ko kldstat ifconfig xl0 promisc -arp up ifconfig xl1 promisc -arp up ngctl mkpeer . eiface hook ether ngctl mkpeer ngeth0: one2many lower one ngctl connect xl0: ngeth0: lower lower many0 ngctl connect xl1: ngeth0: lower lower many1 ngctl list ifconfig ngeth0 -arp up ifconfig ngeth0 inet 192.168.168.239 netmask 255.255.255.0 ifconfig -a = route add default 192.168.168.220 ________________________________________ #Taosecurity modified 30/07/04 #!/bin/sh kldload /usr/src/sys/modules/netgraph/ether/ng_ether.ko kldstat ifconfig xl0 promisc -arp up ifconfig xl1 -arp up ngctl mkpeer . eiface hook ether ngctl mkpeer ngeth0: one2many lower one ngctl connect xl0: ngeth0: lower lower many0 ngctl connect xl1: ngeth0: lower lower many1 ngctl list ifconfig ngeth0 -arp up ifconfig ngeth0 inet 192.168.168.239 netmask 255.255.255.0 route add = default 192.168.168.220 ifconfig -a Any suggetion. Maurizio