M
M
Mikname2019-06-28 15:09:30
linux
Mikname, 2019-06-28 15:09:30

Ubuntu 18.04 not distributing bond lacp traffic how to fix?

Good afternoon, please help me solve the problem.
Combined interfaces on Ubuntu 18.04 in bond lacp
Configured on D-Link 1210-28 Lacp I observe
that traffic goes mostly through only one interface.
What could be wrong?
Server netplan
config # network: {config: disabled}
network:
version: 2
renderer: networkd
ethernets:
eno1:
match:
macaddress: '2c:76:8a:53:c9:70'
wakeonlan: true
eno2:
match:
macaddress: ' 2c:76:8a:53:c9:71'
wakeonlan: true
eno3:
match:
macaddress: '2c:76:8a:53:c9:72'
wakeonlan: true
eno4:
match:
macaddress: '2c:76:8a:53:c9:73'
wakeonlan: true
bonds:
bond0:
interfaces: [eno1, eno2 , eno3, eno4]
addresses: [10.1.45.10/24]
gateway4: 10.1.45.254
parameters:
mode: 802.3ad
lacp-rate: fast
mii-monitor-interval: 100
mtu: 9000
nameservers:
search: [domain.com]
addresses : [10.1.45.1]
Ifconfig
bond0 output: flags=5187 mtu 9000
inet10.1.45.10
netmask
255.255.255.0
broadcast10.1.45.255 158.9 GB ) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno1 : flags=6211 mtu 9000 ether a2:2f:93:50:c2: e4 txqueuelen 1000 (Ethernet) RX packets 3133270 bytes 562151248 (562.1 MB) RX errors 0 dropped 124441 overruns 0 frame 0 TX packets 7988 bytes 1022464 (1.0 MB)


TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 91
eno2: flags=6211 mtu 9000
ether a2:2f:93:50:c2:e4 txqueuelen 1000 (Ethernet)
RX packets 3133270 bytes 562151248 (562.1 MB)
RX errors 0 dropped 124441 overruns 0 frame 0
TX packets 7988 bytes 1022464 (1.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 92
eno3: flags=6211 mtu 9000
ether a2:2f:93:50:c2:e4 txqueuelen 1000 (Ethernet)
RX packets 3133266 bytes 562149956 (562.1 MB)
RX errors 0 dropped 124441 overruns 0 frame 0
TX packets 7988 bytes 1022464 (1.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 91
eno4: flags=6211 mtu 9000
ether a2:2f:93:50:c2:e4 txqueuelen 1000 (Ethernet)
RX packets 203130365 bytes 157241843057 (157.2 GB)
RX errors 0 dropped 124441 overruns 0 frame 0 TX
packets 187443027

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mikname, 2019-07-01
@Mikname

In general, there was a problem that Lacp DLINK and Ubuntu are not friends, I observe the ring on the switch.
PS: The problem was solved by replacing the switch with Mikrotik

D
Dmitry, 2019-06-28
@Tabletko

Traffic between what and what? If you check between two clients, then he will walk on one link in LACP 802.3ad mode

M
Mikhail Vasiliev, 2019-06-28
@Loiqig

Try changing the balancing algorithm. From the D-Link side, this is the config link_aggregation algorithm command , from the Linux and netplan side, this is the transmit-hash-policy (xmit_hash_policy) option. You need to look at the traffic profile, of course, but usually, in order to spread it as much as possible, you need to do L3 + L4 mode.

R
Ruslan Fedoseev, 2019-06-28
@martin74ua

Which way does it go?
You can manage traffic distribution only for transmitted traffic. Those. settings on the switch - affect the traffic from the switch towards the server, settings on the server - affect the traffic from the server to the switch....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question