After failing with this 8 months ago, I finally pushed it through. I have no idea why it was so difficult, because it really wasn’t. Must have made too many mistakes.
# ovs-appctl bond/show bond0
---- bond0 ----
bond may use recirculation: yes, Recirc-ID : 6
updelay: 0 ms
downdelay: 0 ms
next rebalance: 7733 ms
active slave mac: xx:xx:xx:xx:xx:xx(ens1f0)
slave ens1f0: enabled
hash 64: 1 kB load
hash 116: 1 kB load
hash 140: 13 kB load
hash 141: 1 kB load
hash 164: 1 kB load
hash 204: 1 kB load
hash 214: 1 kB load
slave ens1f1: enabled
hash 28: 10 kB load
hash 142: 22 kB load
hash 221: 1 kB load
This is because I have gigabit link to my desktop machine and single gigabit as a trunk from switch to router isn’t enough because GbE isn’t big enough to handle that and all the other network traffic. And because of which I have had two trunks, which isn’t very elegant solution and causes unnecessary configuration and other weird situations to the network topology.
I have only moved the internet to this new trunk and so far it is working very well. Still need to move all the other networks and perhaps add another gigabit link.
ens1f0 and ens1f1 are the interfaces, and I should use two different interface cards to get redundancy if one goes wrong.
I probably had something else to say but I seem to have forgotten what it was.
I am using OpenvSwitch and here is basically all that was needed:
ovs-vsctl add-br ovsbr5
ovs-vsctl add-bond ovsbr5 bond0 ens1f0 ens1f1 lacp=active
bond_mode=balance-tcp other_config:lacp-time=fast vlan_mode=trunk
ovs-vsctl set port bond0 vlan_mode=trunk
The last command may not even be necessary as the bond may default on trunk. But try it out.
Here’s ovs-ovsctl show:
trunks: [3, 4]
trunks: [3, 4]
Upgrade to 3Gbit
Could not find out how I could have upgraded an existing OpenvSwitch bond from 2 links to 3 links so I had to recreate it, but that went without any problems.
bwm-ng v0.6.1 (probing every 1.000s), press 'h' for help
input: /proc/net/dev type: rate
/ iface Rx Tx Total
ens1f0: 269.81 KB/s 260.87 KB/s 530.68 KB/s
enp3s0f0: 36.12 KB/s 58.99 KB/s 95.10 KB/s
ens1f1: 455.73 KB/s 33333.58 KB/s 33789.31 KB/s
total: 761.66 KB/s 33653.44 KB/s 34415.10 KB/s
All three links are now utilized.
Major network change but everything went without any major problems. OpenvSwitch seems robust and pfSense only had bunch of minor clitches.
Does it work
Testing shows I cannot pull more than 1Gbit through the three links. I have no idea why. Should it not be using all the available bandwidth? I do not understand.
OPENVSWITCH – Playing with Bonding on Openvswitch