From owner-freebsd-net@FreeBSD.ORG Thu Feb 5 09:19:49 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 A89F616A4F0 for ; Thu, 5 Feb 2004 09:19:49 -0800 (PST) Received: from web60808.mail.yahoo.com (web60808.mail.yahoo.com [216.155.196.71]) by mx1.FreeBSD.org (Postfix) with SMTP id A056943D5A for ; Thu, 5 Feb 2004 09:19:47 -0800 (PST) (envelope-from kanwar_anshuman@yahoo.com) Message-ID: <20040205171946.13823.qmail@web60808.mail.yahoo.com> Received: from [68.111.37.3] by web60808.mail.yahoo.com via HTTP; Thu, 05 Feb 2004 09:19:46 PST Date: Thu, 5 Feb 2004 09:19:46 -0800 (PST) From: Anshuman Kanwar To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Linux ethernet bonding like driver 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: Thu, 05 Feb 2004 17:19:49 -0000 Hi all, I have a situation where my servers (Freebsd Solaris and Linux) are connected to two independent switches via 2 seperate NIC cards. To enhance my redundancy I want to group 2 adapters in a active-standby failover mode, with a single IP flipping between the two. Under Solaris I can do this with nafo or more recently ipmp. Under Linux I can use the Ethernet bonding driver in mode=1 to get this behavior. I did not find any ready made solutions for FreeBSD so i coded my own perl script to look at ifconfig and do a failover based on "status" ... it can also ping a couple of IPs and figure if the link is up but connectivity has gone down. It fails over any aliases, fixes arp table, takes care of vlans and moves the def route. I'd be happy to share if anyone is interested. So what is the issue ? Well, I would like to achieve faster failover times than my script currently gives (~5 seconds). The linux driver does a failover in < 100 ms. It uses MII status to detect link loss. So in FreeBSD is there a way to implement a virtual driver which can team 2 or more physical adapters in a failover group ? I would appreciate some pointers on where to get started. Thanks, -ansh __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html