Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setting LACP flags in unraid

Featured Replies

I'm having trouble finding information about setting my bond0 interface to use LACP Fast (FA flags).

 

current configuration:

 

IFNAME[0]="br0"
BONDNAME[0]="bond0"
BONDING_MIIMON[0]="100"
BRNAME[0]="br0"
BRSTP[0]="no"
BRFD[0]="0"
BONDING_MODE[0]="4"
BONDNICS[0]="eth0 eth1"
BRNICS[0]="bond0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
IPADDR[0]="10.255.255.10"
NETMASK[0]="255.255.255.0"
GATEWAY[0]="10.255.255.1"
DNS_SERVER1="10.255.255.1"
USE_DHCP6[0]="yes"
DHCP6_KEEPRESOLV="no"
SYSNICS="1"

 

I've got a Cisco switch on the other end of the link with the interface configured as follows:

 

interface GigabitEthernet1/0/9
 description unRAID Bonded Interface
 switchport mode access
 spanning-tree portfast edge
 lacp rate fast
 channel-group 3 mode active
!
interface GigabitEthernet1/0/10
 description unRAID Bonded Interface
 switchport mode access
 spanning-tree portfast edge
 lacp rate fast
 channel-group 3 mode active

 

It works no problem, the only hiccup is that unraid is still using LACP Slow as can be seen from the switch:

 

Port: Gi1/0/9
------------

Port state    = Up Mstr Assoc In-Bndl
Channel group = 3           Mode = Active          Gcchange = -
Port-channel  = Po3         GC   =   -             Pseudo port-channel = Po3
Port index    = 0           Load = 0x00            Protocol =   LACP

Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs.
        A - Device is in active mode.        P - Device is in passive mode.

Local information:
                            LACP port     Admin     Oper    Port        Port
Port      Flags   State     Priority      Key       Key     Number      State
Gi1/0/9   FA      bndl      32768         0x3       0x3     0x10A       0x3F

Partner's information:

                  LACP port                        Admin  Oper   Port    Port
Port      Flags   Priority  Dev ID          Age    key    Key    Number  State
Gi1/0/9   SA      255       3cec.ef11.fe2e   0s    0x0    0x9    0x1     0x3D

Age of the port in the current state: 0d:00h:04m:25s

Port: Gi1/0/10
------------

Port state    = Up Mstr Assoc In-Bndl
Channel group = 3           Mode = Active          Gcchange = -
Port-channel  = Po3         GC   =   -             Pseudo port-channel = Po3
Port index    = 0           Load = 0x00            Protocol =   LACP

Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs.
        A - Device is in active mode.        P - Device is in passive mode.

Local information:
                            LACP port     Admin     Oper    Port        Port
Port      Flags   State     Priority      Key       Key     Number      State
Gi1/0/10  FA      bndl      32768         0x3       0x3     0x10B       0x3F

Partner's information:

                  LACP port                        Admin  Oper   Port    Port
Port      Flags   Priority  Dev ID          Age    key    Key    Number  State
Gi1/0/10  SA      255       3cec.ef11.fe2e   0s    0x0    0x9    0x2     0x3D

Age of the port in the current state: 0d:00h:04m:25s

                Port-channels in the group:
                ---------------------------

Port-channel: Po3    (Primary Aggregator)

------------

Age of the Port-channel   = 0d:01h:30m:46s
Logical slot/port   = 9/3          Number of ports = 2
HotStandBy port = null
Port state          = Port-channel Ag-Inuse
Protocol            =   LACP
Port security       = Disabled
Load share deferral = Disabled

Ports in the Port-channel:

Index   Load   Port     EC state        No of bits
------+------+------+------------------+-----------
  0     00     Gi1/0/9  Active             0
  0     00     Gi1/0/10 Active             0

Time since last port bundled:    0d:00h:04m:25s    Gi1/0/10
Time since last port Un-bundled: 0d:00h:06m:23s    Gi1/0/10

 

Under "Partner's information" you can see the interface on unraid's side has the SA flags set.

 

Any idea where I can set that flag? For example, on Proxmox I'd set it in /etc/network/interfaces as "bond-lacp-rate 1" on the bond interface.

Solved by bmartino1

  • Community Expert
  • Solution

I think this is a plugin edit.

tips and tricks. otherwise this is webui bond options....

manula:

*Make a backup to easliy recover form:

cp /boot/config/network.cfg /boot/config/network.cfg.backup


edit the config:

nano /boot/config/network.cfg

 

Modify or add the relevant settings for bond0. Here’s an example configuration that sets the bonding mode to 4 (802.3ad or LACP) and includes options for LACP rate fast and other relevant flags:

BONDING="yes"
BONDING_MODE="802.3ad"
BONDING_MIIMON="100"
BONDING_LACP_RATE="fast"
BONDING_SLAVES="eth0 eth1"

^ - Example...

Here, BONDING_MODE="802.3ad" specifies LACP, BONDING_LACP_RATE="fast" sets the LACP rate to fast (useful for fast failover), and BONDING_MIIMON="100" sets the MII link monitoring frequency in milliseconds, which determines how often the link status is checked.

 

Reboot/restart the network interface.

/etc/rc.d/rc.network restart

 

verify:

cat /proc/net/bonding/bond0


 

  • Author

Perfect! This is exactly what I needed. Thank you.

Hello 

On 12/9/2024 at 9:23 AM, bmartino1 said:

 

BONDING="yes"
BONDING_MODE="802.3ad"
BONDING_MIIMON="100"
BONDING_LACP_RATE="fast"
BONDING_SLAVES="eth0 eth1"


 

I try to using, but still slow mode
image.thumb.png.8efbb0d9c305ad863af1f058df16c6c3.png

  • Community Expert

you may need to use the # instead of the word..

 

BONDING="yes"
BONDING_MODE="4"        # 802.3ad corresponds to mode 4
BONDING_MIIMON="100"    # Monitoring interval in milliseconds
BONDING_LACP_RATE="1"   # Fast LACP rate (1 for fast, 0 for slow)
BONDING_SLAVES="eth0 eth1"

 

Its been awhile since i had to set that outside of the web UI...

 

BONDING_MODE="4": This sets the bonding mode to 802.3ad (Link Aggregation).

BONDING_LACP_RATE="1": Fast LACP rate sends LACP packets every second. Use 0 for slow (every 30 seconds).

BONDING_MIIMON="100": Sets the monitoring interval for checking link status.

BONDING_SLAVES="eth0 eth1": Defines the interfaces to include in the bond.

  • Community Expert

 

you may need to double-check switch settings and instal plugin to grab other network detail and post a unraid diag file if you continue to have issues with LACP as this is auto negotiated and done differently now...

 

review:

https://gist.github.com/sems/f3b2f10ea0fb30d6f6fade841a12dfae

 

as LAG may be working but a static IP is not setting and using LAG...

Edited by bmartino1

  • 10 months later...

I am using a Ubiquiti switch, which apparently is hardcoded to use:

BONDING_XMIT_HASH_POLICY[0]="layer3+4"

BONDING_LACP_RATE[0]="fast"

However, adding those commands into the /boot/config/network.cfg file only applies the LACP Rate setting. The solution was to create a /boot/config/modprobe.d/bonding.conf file with the following line:

options bonding xmit_hash_policy=1 lacp_rate=fast

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.