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.

How to set 802.3ad 'xmit_hash_policy' (Transmit Hash Policy)?

Featured Replies

Hello, I've configured two NIC's in 802.3ad bonding mode and so far everything works as expected.
Now I want to change the 'xmit_hash_policy' from 'layer2' to 'layer2+3' to get a more balanced distribution of traffic but I cant figure out where to set this.

  • Author

Anyone?

You'll need to add it to the /boot/config/go file

 

# enable layer2+3 in bonding 802.3ad
echo layer2+3 > /sys/class/net/bond0/bonding/xmit_hash_policy

 

  • Author

Works :D

you may need to ifdown and ifup the interface after that echo.

 

#setup bonding for layer2+3
#ifconfig bond0 down;echo 'layer2+3' >/sys/class/net/bond0/bonding/xmit_hash_policy;ifconfig bond0 up

Edited by klamath

I didn't notice that. Also I've stopped lacp in favor of dedicated nic for containers.

  • 3 years later...

It would be nice to have this settings in the network configuration UI.

Usually if you do a bond you will want to change the xmit_hash_policy

On 5/12/2017 at 12:59 AM, klamath said:

you may need to ifdown and ifup the interface after that echo.

 

#setup bonding for layer2+3
#ifconfig bond0 down;echo 'layer2+3' >/sys/class/net/bond0/bonding/xmit_hash_policy;ifconfig bond0 up

this is only executed at the boot time of unraid, right?

Do i have to add #ifconfig? or starting with "bond0 down...." is enough?

Edited by L0rdRaiden

@klamath @ken-ji

 

Should it look like this?

Thanks in advance

imagen.png.da4999856f52e62da7d9e17c2d6ae321.png

Edited by L0rdRaiden

Just for the record

 

cat /proc/net/bonding/bond0

 

imagen.png.ca63c0af2c020f00985581274511f1a3.png

On 7/22/2020 at 2:26 AM, L0rdRaiden said:

@klamath @ken-ji

 

Should it look like this?

Thanks in advance

imagen.png.da4999856f52e62da7d9e17c2d6ae321.png

Unless you absolutely know what you are doing, emhttp is usually last as that will start the array and other related services.

you are in effect quickly restarting the network as containers and vms powerup (though in practice, the array is still mounting at this point)

 

On 7/20/2020 at 7:10 PM, L0rdRaiden said:

Usually if you do a bond you will want to change the xmit_hash_policy

802.3ad LACP only supports layer2 (MAC) hashing.

The other modes for hashing on layer 3 and layer 4 are not official part of the IEEE standard. Use with caution.

Remember that you manipulate only one side of the bond and this may lead to asymmetric traffic.

 

21 hours ago, bonienl said:

802.3ad LACP only supports layer2 (MAC) hashing.

The other modes for hashing on layer 3 and layer 4 are not official part of the IEEE standard. Use with caution.

Remember that you manipulate only one side of the bond and this may lead to asymmetric traffic.

 

I understand that at least my switch has to be layer3+4 compatible, right?

Archived

This topic is now archived and is closed to further replies.

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.