From 974a604ee8d923dc3811e186fd8e3f513c17db44 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 7 Oct 2026 15:31:47 +0200 Subject: [PATCH] mxrouterctl: Set bonding xmit hash policy to layer 2+3 This is designed to be used on a router-to-router link so use a xmit hash policy of layer 2+3 in a LAG bond to get a better load balance. --- mxrouter/mxrouterctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxrouter/mxrouterctl b/mxrouter/mxrouterctl index 8c176408..934ecfaa 100755 --- a/mxrouter/mxrouterctl +++ b/mxrouter/mxrouterctl @@ -341,7 +341,7 @@ sub configure_bonds { for my $device (sort keys %$want_bond) { my $mode = $BONDING_KERNEL_MODE{$want_bond->{$device}{mode}}; my @slaves = @{$want_bond->{$device}{slaves}}; - sys('ip', 'link', 'add', $device, 'type', 'bond', 'mode', $mode, 'miimon', '100'); + sys('ip', 'link', 'add', $device, 'type', 'bond', 'mode', $mode, 'xmit_hash_policy', 'layer2+3', 'miimon', '100'); for my $slave (@slaves) { # the kernel refuses to enslave a device that is administratively up sys('ip', 'link', 'set', $slave, 'down');