From owner-freebsd-net@FreeBSD.ORG Sat Aug 9 08:56:33 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18079106567B for ; Sat, 9 Aug 2008 08:56:33 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id D75F68FC0C for ; Sat, 9 Aug 2008 08:56:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2066777rvf.43 for ; Sat, 09 Aug 2008 01:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=YWYRMiYFz28S4nObtydq5/I+HlTIllJ4z4Ynzugd2k8=; b=qDeeLo89I+5jEbAh8HwsstoHQ3nlkqfyiBnTvers/wH0JC546uVXk9580wvwL8CXwf SmzYo/vl1FqpnSO7ap0AvSktpqRy50j+r2hIiFNe0AWmPcFuS1l4enjPzWfkrKhMWdBj uQ0Y9BxUOy5PVpOj8stsRclcVTnuHw5EHWgg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=HBZ2Q+xTAP5kEhuuuUkMPyCXMdSUW820duK5FrUUGoelzx6wObENrbAUMWC1T2IuFR /QH+bln2xYTaxM0cKo5hpoU8YjpEryWnI7nYNu6sZrDIzbTSqcDWOTGbbO8uekDe5EiS aAKdEHEQZwTCGXiDWN5gk0uH8spKzK34G2v3s= Received: by 10.141.29.21 with SMTP id g21mr1988616rvj.225.1218270471013; Sat, 09 Aug 2008 01:27:51 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id f21sm559611rvb.0.2008.08.09.01.27.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Aug 2008 01:27:49 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m798Pd7a043815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Aug 2008 17:25:39 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m798PdFS043814; Sat, 9 Aug 2008 17:25:39 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 9 Aug 2008 17:25:39 +0900 From: Pyun YongHyeon To: Jacob Owens Message-ID: <20080809082539.GC42339@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: lagg failover not automatic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 08:56:33 -0000 On Fri, Aug 08, 2008 at 11:49:27PM -0500, Jacob Owens wrote: > Hello. > > I've got a old sun V100 which features two gigabit ports (using dc driver). > I've been trying to get lagg failover working. on SPARC64 7.0 RELEASE > > On the box I put the following in /etc/rc.conf: > ifconfig_dc0="UP" > ifconfig_dc1="UP" > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto failover laggport dc0 laggport dc1 50.40.0.3netmask > 255.255.0.0 > > I even added this to my loader.conf (per the man page) > if_lagg_load="YES" > > I'm not using a smart switch, so no STP. > > What happens when I unplug the "master" interface, is that the network will > stop working. the second I type in 'ifconfig -v' to see what the situation > is, there is a small pause, and then the network fails over to the second > nic and starts working. So it seems that typing 'ifconfig' somehow wakes the > config up... Dmesg does not show the appropriate update (dc0: link state > changed to DOWN/dc0: link state changed to UP) until after i type ifconfig > either. Here is the before and after outfut of 'ifconfig -v' > > BEFORE: > sunbox# ifconfig > -v > dc0: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > media: Ethernet autoselect (100baseTX > ) > status: > active > lagg: laggdev > lagg0 > dc1: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > media: Ethernet autoselect (100baseTX > ) > status: > active > lagg: laggdev > lagg0 > lo0: flags=8049 metric 0 mtu > 16384 > inet 127.0.0.1 netmask > 0xff000000 > groups: > lo > lagg0: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > inet 50.40.0.3 netmask 0xffff0000 broadcast 50.40.255.255 > > media: Ethernet > autoselect > status: > active > groups: > lagg > laggproto > failover > laggport: dc1 > flags=0<> > laggport: dc0 flags=5 > > AFTER: > sunbox# ifconfig > -v > dc0: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > media: Ethernet autoselect > (none) > status: no > carrier > lagg: laggdev > lagg0 > dc1: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > media: Ethernet autoselect (100baseTX > ) > status: > active > lagg: laggdev > lagg0 > lo0: flags=8049 metric 0 mtu > 16384 > inet 127.0.0.1 netmask > 0xff000000 > groups: > lo > lagg0: flags=8843 metric 0 mtu > 1500 > > options=8 > ether > 00:03:ba:6c:be:04 > inet 50.40.0.3 netmask 0xffff0000 broadcast 50.40.255.255 > > media: Ethernet > autoselect > status: > active > groups: > lagg > laggproto > failover > laggport: dc1 > flags=4 > laggport: dc0 flags=1 > > Thanks in advance. any ideas? Would you show me the dmesg output? -- Regards, Pyun YongHyeon