From owner-freebsd-questions@FreeBSD.ORG Fri Aug 10 13:29:48 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C91F16A417 for ; Fri, 10 Aug 2007 13:29:48 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id D2F8513C461 for ; Fri, 10 Aug 2007 13:29:47 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so1432126pye for ; Fri, 10 Aug 2007 06:29:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aHQn/NB54BlNdq+nDVENH50PUdJmuX/Z3m6KLxjicYvw01DWoCP7kTw2nRIHifIe6IjNjBs583KyjELPgA8SmsHCILfD/3CfQQLHKFcMLZNz5v4WsNmLT7uE9wHwZ362MgujdbB3JCGd8r5CVGKBKU5oVIQ0LhE/kaneUuYzaYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Tt61LWbzLsRFotR84feiRU7KU6pXQFHWml1VQ9fowxh3YAQtGU6ZMTg6dqF9yLgchbb7obFADt23wPoc7Ml9rKe4h5VOB3zeuAcp3nN4EtQ+V2Pt4Zj4xRxVRpG7mueCV5GXGMdqDoES9hoVa1SaGnjXg1ZZg5d5tm0BPo7IHhQ= Received: by 10.64.193.2 with SMTP id q2mr5027546qbf.1186752586861; Fri, 10 Aug 2007 06:29:46 -0700 (PDT) Received: by 10.64.91.18 with HTTP; Fri, 10 Aug 2007 06:29:46 -0700 (PDT) Message-ID: <3a386af20708100629v18cd19e0wec652b9115aa04f6@mail.gmail.com> Date: Fri, 10 Aug 2007 15:29:46 +0200 From: "Federico Lorenzi" To: "User Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: DUP! Pings with if_lagg configuration. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 13:29:48 -0000 Hi there. I'm trying to set up a link between a two mini FreeBSD servers of mine using if_lagg in loadbalance mode and two NIC cards in each box. They are also on the same switch. Both machines are the latest 6-stable. After following some simple instructions in the man page, each machine is configured as follows: Machine 1: rl0: flags=8843 mtu 1500 options=8 ether 00:e0:4c:ff:38:7e media: Ethernet 100baseTX status: active lagg: laggdev lagg0 rl1: flags=8843 mtu 1500 options=8 ether 00:e0:4c:ff:38:7e media: Ethernet 100baseTX status: active lagg: laggdev lagg0 lagg0: flags=8843 mtu 1500 inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:e0:4c:ff:38:7e media: Ethernet autoselect status: active laggproto loadbalance laggport: rl1 flags=4 laggport: rl0 flags=4 Machine 2: xl0: flags=8843 mtu 1500 options=9 inet6 fe80::201:2ff:fea8:da61%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:a8:da:61 media: Ethernet autoselect (100baseTX ) status: active lagg: laggdev lagg0 dc0: flags=8843 mtu 1500 options=8 inet6 fe80::201:2ff:fea8:da61%dc0 prefixlen 64 scopeid 0x2 ether 00:01:02:a8:da:61 media: Ethernet autoselect (100baseTX ) status: active lagg: laggdev lagg0 lagg0: flags=8843 mtu 1500 inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::201:2ff:fea8:da61%lagg0 prefixlen 64 duplicated scopeid 0x4 ether 00:01:02:a8:da:61 media: Ethernet autoselect status: active laggproto loadbalance laggport: dc0 flags=4 laggport: xl0 flags=4 Now, while this setup is working, the speeds seem to be terrible! A FTP from machine 1 to machine 2 goes at 4MB/s. Both PCs are 2.4ghz P4s so I doubt the CPU is limiting that. Something which I also noticed was that pinging the machines from a non lagg configured box gave me: PING 192.168.1.6 (192.168.1.6): 56 data bytes 64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.643 ms 64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.712 ms (DUP!) ^C --- 192.168.1.6 ping statistics --- 2 packets transmitted, 2 packets received, +2 duplicates, 0% packet loss round-trip min/avg/max/stddev = 0.474/0.586/0.712/0.096 ms And pinging the boxen from each other gave me: PING 192.168.1.7 (192.168.1.7): 56 data bytes 64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.460 ms 64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.464 ms (DUP!) 64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.548 ms (DUP!) 64 bytes from 192.168.1.7: icmp_seq=0 ttl=64 time=0.549 ms (DUP!) ^C --- 192.168.1.7 ping statistics --- 1 packets transmitted, 1 packets received, +3 duplicates, 0% packet loss round-trip min/avg/max/stddev = 0.460/0.505/0.549/0.043 ms Any help in solving this would be greatly appreciated! Federico