This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

LAGG does not seem to work in any mode.

NIC, network controllers, compatibility questions, WOL, wake on lan
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
acidrop
NewUser
NewUser
Posts: 3
Joined: 01 Dec 2014 18:15
Status: Offline

LAGG does not seem to work in any mode.

Post by acidrop »

Hello,

This is my first post and first try to install Nas4Free on a HP Microserver N54L with 3 x 2Tb WD Reds in ZFS raid-z1.ZFS work as excepected, no problems at all.
The only point where I am stuck is trying to create a LAGG (bond two ethernet cards) and put it in roundrobin mode(tried almost all modes with no success).
HP Microserver has an onboard card and I have added another one (Intel).Below is some info about the nics:

Code: Select all

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 68:05:ca:2d:a1:0c
        inet 192.168.10.99 netmask 0xffffff00 broadcast 192.168.10.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 9c:b6:54:0c:a5:c9
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
I followed this post to configure the LAGG (link viewtopic.php?f=55&t=357).
I selected roundrobin/loadbalance/failover modes but no one of them seems to work.
LACP is not supported by my switch so that is not an option.
One thing I have noticed is that when I create the LAGG interface and put as slaves my 2 nics and then reboot, all 3 interfaces now has the same MAC address. Is this normal?
Whenever I try to ping from console to any computer outside I get as response:
ping: sendto: Device busy
I've tested also this on a virtual machine with 2 vnics and the problem occurs there too.
Can you please assist with this? I have enough experience on Linux but not so on FreeBSD.

thank you
Last edited by acidrop on 01 Dec 2014 20:47, edited 2 times in total.

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: LAGG does not seem to work in any mode.

Post by daoyama »

What version did you use?
If LAGG is configured, ifconfig shows like this:

Code: Select all

nas4free: ~ # ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 08:00:27:b3:f9:9d
        inet6 fe80::a00:27ff:feb3:f99d%em0 prefixlen 64 scopeid 0x1
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 08:00:27:b3:f9:9d
        inet6 fe80::a00:27ff:fe2d:f77c%em1 prefixlen 64 scopeid 0x3
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 08:00:27:b3:f9:9d
        inet 172.18.0.165 netmask 0xffff0000 broadcast 172.18.255.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: active
        laggproto roundrobin lagghash l2,l3,l4
        laggport: em1 flags=4<ACTIVE>
        laggport: em0 flags=4<ACTIVE>
Also Welcome message is like this:

Code: Select all

Welcome to NAS4Free!
    NAS4Free: 9.3.0.1 (revision 1126)
    Build on: Tue Dec  2 03:14:26 JST 2014 Platform: x64-embedded
    Copyright (c) 2012-2013 The NAS4Free Project. All Rights Reserved.
    Visit: http://www.nas4free.org for system updates!


        LAN Network IPv4 Address: 172.18.0.165
        LAN Network Interface:    lagg0
        OPT1  -> em0 (OPT1)
        OPT2  -> em1 (OPT2)
I think OPT1/OPT2 is not needed.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

acidrop
NewUser
NewUser
Posts: 3
Joined: 01 Dec 2014 18:15
Status: Offline

Re: LAGG does not seem to work in any mode.

Post by acidrop »

Version is Nas4Free 9.2.0.1.972 x64.
I noticed in your configuration that all your interfaces(em0,em1,lagg0) share the same mac address (08:00:27:b3:f9:9d), the same happens to my setup.

Welcome message is identical with yours(this is a screenshot from a vm where I'm testing N4F).

Image

LAGG interface details (this is a screenshot from a vm where I'm testing N4F):

Image

Although the settings above are on vm the same situation exists on physical box (n54l).

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: LAGG does not seem to work in any mode.

Post by crowi »

Just because I am curious and I formerly also played withh LAGG and skipped it again:
why do you need it and what do you want to achieve with it?

Unless you you don't have a managed switch, it usually does not make too much sense.
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

acidrop
NewUser
NewUser
Posts: 3
Joined: 01 Dec 2014 18:15
Status: Offline

Re: LAGG does not seem to work in any mode.

Post by acidrop »

This nas box will be dedicated for backups, so what I want to achieve is maximum throughput by combining the speed of 2 gigabit nics in roundrobin manner.I know it won't achieve 2gbit speed, but in tests I've done on linux bonding in same setup it peaks around 1.5gbit with simultaneous backup jobs.

Post Reply

Return to “LAN , Network controllers”