lagg failover not automatic

Jacob Owens jacoblowens at gmail.com
Sat Aug 9 05:17:18 UTC 2008


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?


More information about the freebsd-net mailing list