Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2008 17:25:39 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Jacob Owens <jacoblowens@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: lagg failover not automatic
Message-ID:  <20080809082539.GC42339@cdnetworks.co.kr>
In-Reply-To: <c292b6660808082149m421d1a96q53d8a6934e11ed70@mail.gmail.com>
References:  <c292b6660808082149m421d1a96q53d8a6934e11ed70@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         ether
 > 00:03:ba:6c:be:04
 >         media: Ethernet autoselect (100baseTX
 > <full-duplex>)
 >         status:
 > active
 >         lagg: laggdev
 > lagg0
 > dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         ether
 > 00:03:ba:6c:be:04
 >         media: Ethernet autoselect (100baseTX
 > <full-duplex>)
 >         status:
 > active
 >         lagg: laggdev
 > lagg0
 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu
 > 16384
 >         inet 127.0.0.1 netmask
 > 0xff000000
 >         groups:
 > lo
 > lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         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<MASTER,ACTIVE>
 > 
 > AFTER:
 > sunbox# ifconfig
 > -v
 > dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         ether
 > 00:03:ba:6c:be:04
 >         media: Ethernet autoselect
 > (none)
 >         status: no
 > carrier
 >         lagg: laggdev
 > lagg0
 > dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         ether
 > 00:03:ba:6c:be:04
 >         media: Ethernet autoselect (100baseTX
 > <full-duplex>)
 >         status:
 > active
 >         lagg: laggdev
 > lagg0
 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu
 > 16384
 >         inet 127.0.0.1 netmask
 > 0xff000000
 >         groups:
 > lo
 > lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
 > 1500
 > 
 > options=8<VLAN_MTU>
 >         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<ACTIVE>
 >         laggport: dc0 flags=1<MASTER>
 > 
 > Thanks in advance. any ideas?

Would you show me the dmesg output?

-- 
Regards,
Pyun YongHyeon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080809082539.GC42339>