Trying to get LAGG going

Hi all, trying to configure LAGG LACP, just for testing a few thing, but a little lost. So far I did get it configured and it seems to work, but not sure if it's actually configured correctly. Firstly, I tried verifying both LANs (onboard) were working correctly. They do in Windows, but in FreeBSD, it was a bit iffy. I attempted this first:

ifconfig_em0="192.168.1.7 netmask 255.255.255.0 up"
ifconfig_alc0="192.168.1.2 netmask 255.255.255.0 up"

Only the alc0 was working. I tested this by unplugging the ethernet wire on one or the other. Next, instead of manually entering the IP and netmask, I just put DHCP and up on both entries and they worked normally, regardless of which one I unplugged and whichever I kept plugged in. So, they both work only if I put DHCP.

Finally I went ahead and configured LAGG, and finally got to the part where I could put this into my rc.conf. Note, I did remove the previous entries for ifconfig_em0(and alc0)="DHCP up". From top to bottom (minus non-networking entries) my rc.conf looks only like this:

ifconfig_lagg0_ipv6="inet6 accept_rtadv"
cloned_interfaces="lagg0"
ifconfig_em0="up"
ifconfig_alc0="up"
ifconfig_lagg0="up laggproto lacp laggport em0 laggport alc0 DHCP"

This works as I can indeed connect to the internet, but not sure if this is right. I'm not sure about the order of options. Do I even put "up" at the beginning for lagg0? At the end? At all? What about broadcast +? or anything else?
Again, I didn't put the previous ifconfig_em0 (or alc0)="DHCP" as I did before, do I still need to do that? I guess I just wanna know what the rc.conf should look like at this point. Another weird tidbit, I do subscribe to 1100Mbps internet, although I haven't exchanged my gateway yet. I normally just see 800Mbps on speedtest.net using a single LAN, but now I only see about 570Mbps, as if it were cut in half. Is this supposed to be how it goes?

Thanks for insights.

edit: ifconfig


Code:
alc0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=c209a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
        ether redacted:eb
        hwaddr redacted:ed
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
em0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=8420ba<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS>
        ether redacted:eb
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lagg0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=4209a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO>
        ether redacted:eb
        hwaddr 00:00:00:00:00:00
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 redacted:35eb%lagg0 prefixlen 64 scopeid 0x4
        laggproto lacp lagghash l2,l3,l4
        laggport: alc0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        laggport: em0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        groups: lagg
        media: Ethernet autoselect
        status: active
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
 
I'm not sure about the order of options. Do I even put "up" at the beginning for lagg0
There are no order of options.

Code:
### Networking ###
ifconfig_lo="127.0.0.1 netmask 255.255.255.0"
#
### LAGG ###
ifconfig_cxl0="up mtu 9000 -tso4 -tso6 -lro -vlanhwtso"
ifconfig_cxl1="up mtu 9000 -tso4 -tso6 -lro -vlanhwtso"
ifconfig_cxl2="up mtu 9000 -tso4 -tso6 -lro -vlanhwtso"
ifconfig_cxl3="up mtu 9000 -tso4 -tso6 -lro -vlanhwtso"
cloned_interfaces="lagg0"
ifconfig_lagg0="up laggproto roundrobin laggport cxl0 laggport cxl1 192.168.1.1 netmask 255.255.255.0"
#
### Motherboard Ethernet Port ###
ifconfig_em0="SYNCDHCP"
ifconfig_em1="inet 192.168.2.1 netmask 255.255.255.0"
 
I really don't like different interfaces for a LAGG connection. Wireless fallover to ethernet might be the exception.
Dual port cards are cheap.
 
Do I even put "up" at the beginning for lagg0? At the end? At all? What about broadcast +?
Don't need to add 'up' at all, it's automatically added when you configure the interface. Broadcast address is automatically calculated from the IP address and subnet mask, which rarely needs to be set differently.
 
Back
Top