From owner-freebsd-net@FreeBSD.ORG Fri Sep 22 18:43:41 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 9A74216A403 for ; Fri, 22 Sep 2006 18:43:41 +0000 (UTC) (envelope-from ozkan@mersin.edu.tr) Received: from mail.mersin.edu.tr (mail.mersin.edu.tr [193.255.128.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0228543D49 for ; Fri, 22 Sep 2006 18:43:40 +0000 (GMT) (envelope-from ozkan@mersin.edu.tr) Received: from localhost (localhost.mersin.edu.tr [127.0.0.1]) by mail.mersin.edu.tr (Postfix) with ESMTP id AE511452B9; Fri, 22 Sep 2006 21:55:21 +0300 (EEST) X-Virus-Scanned: by amavisd-new at mersin.edu.tr Received: from mail.mersin.edu.tr ([127.0.0.1]) by localhost (mail.mersin.edu.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w2rJ-a8poQKn; Fri, 22 Sep 2006 21:55:18 +0300 (EEST) Received: from [127.0.0.1] (unknown [88.247.50.50]) by mail.mersin.edu.tr (Postfix) with ESMTP id 3176C452AA; Fri, 22 Sep 2006 21:55:18 +0300 (EEST) Message-ID: <45142ED1.1000204@mersin.edu.tr> Date: Fri, 22 Sep 2006 21:43:29 +0300 From: =?ISO-8859-9?Q?=D6zkan_KIRIK?= User-Agent: Mozilla Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Antony Mawer References: <4513A5D1.4000604@mersin.edu.tr> <4513AC94.8040609@mawer.org> In-Reply-To: <4513AC94.8040609@mawer.org> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-net@FreeBSD.org Subject: Re: LACP 802.3ad and ng_fec ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 22 Sep 2006 18:43:41 -0000 Thanks for your reply, It seems that HP ProCurve 5400 series doesn't support fec trunking : hp(config)# trunk A3-a5 trk1 fec Invalid input: fec hp(config)# trunk A3-a5 trk1 ? trunk Do not use any protocol to create or maintain the trunk. lacp Use IEEE 802.1ad Link Aggregation protocol. hp(config)# Can ng_fec handshake with switch via "trunk" option instead of "fec" ? Antony Mawer yazmış: > On 22/09/2006 6:58 PM, Özkan KIRIK wrote: >> Does ng_fec module support Dynamic LACP (802.3ad) protocol ? >> >> i have an HP Procurve 5406 switch, i am trying to make a fail over >> connection between switch and freebsd. >> Does ng_fec support "Fail over" for links ? > > The ng_fec module doesn't support LACP (it would be really nice if it > did!!!), but you can configure it manually if you've got access to the > console of the switch. I setup exactly this configuration today > (although in this case it was for bandwidth aggregation rather than > fall-over) using an HP Procurve 5308xl. > > The procedure went something like this: > > 1) First, create a new startup script in /etc/rc.d/ to configure the > Netgraph interface on startup... this was a quick hack-up, but does > the job: > > ---- begin /etc/rc.d/ngfec ---- > $ cat /etc/rc.d/ngfec > #!/bin/sh > # > # PROVIDE: ngfec > # REQUIRE: root > # BEFORE: netif > # KEYWORD: nojail > > . /etc/rc.subr > > name="ngfec" > start_cmd="ngfec_start" > stop_cmd=":" > > # Netgraph FEC startup script > ngfec_start() > { > echo -n "Configuring netgraph FEC device: " > ngctl mkpeer fec dummy fec > ngctl msg fec0: add_iface '"em0"' > ngctl msg fec0: add_iface '"em1"' > echo "done." > } > > load_rc_config $name > run_rc_command "$1" > > ---- end of /etc/rc.d/ngfec ---- > > > 2) Configure the new fec0 interface in /etc/rc.conf: > > ifconfig_fec0="inet a.b.c.d netmask w.x.y.z" > > > 3) Telnet to the HP switch, and do the following: > > i) Type "show trunk" and identify what trunk group names are already > in use. These will be in the format of "TrkN", eg. Trk1,Trk2,... > > ii) Identify which ports are to be configured as part of trunk (eg. > in my case, C1 and C2) > > iii) Select the next available trunk group name (eg. Trk7), and > configure the trunk by typing: > > switch# config t > switch(config)# trunk C1-C2 Trk7 fec > switch(config)# exit > > 4) Once the FreeBSD machine is rebooted, the link should be up.... > > > I'm not sure what the behaviour is when one of the links goes down... > I don't know if that interface is simply removed from the trunk group > and the remaining ones continue to operate? > > Hope this is useful to others out there, as I had trouble finding any > good documentation on how to do this :-) I owe thanks to lukem dot > freebsd at cse dot unsw dot edu dot au for the Netgraph commands for > getting the FreeBSD fec side of things up and running; the rcNG script > above is based on the commands he provided me with, put into rcNG > format so I could integrate it with the boot sequence easily. > > Cheers > Antony > >