Since I upgraded some servers to RHEL 7.5 / CentOS 7.5, I've noticed that when I use teaming for LACP instead of bonding, it only utilizes one nic. I was using the following teamd-runner and it was working flawlessly in 7.4.
"{\"runner\": {\"name\": \"lacp\", \"active\": true, \"fast_rate\": true, \"tx_hash\": [\"eth\", \"ipv4\", \"ipv6\"]},\"link_watch\": {\"name\": \"ethtool\"}}"
So I assume, the runner is not the problem. I did not dig deeper into the problem since I switched back to bonding. In case you've got some old configurations still active on your network cards, you'll need to remove them before you create an 802.3ad bond.First, add the bonding interface
[archy@server ~]$ sudo nmcli connection add type bond con-name bond0 ifname bond0 mode 802.3ad
This just creates the interface. We need to manually assign IP addresses, DNS, give it a gateway and assign slave interfaces to it. [archy@server ~]$ sudo nmcli connection modify bond0 ipv4.address 172.31.0.250/24
[archy@server ~]$ sudo nmcli connection modify bond0 ipv4.dns 127.0.0.1
[archy@server ~]$ sudo nmcli connection modify bond0 ipv4.gateway 172.31.0.254
[archy@server ~]$ sudo nmcli connection modify bond0 ipv4.method manual
Now let's assign slaves to our master bond. [archy@server ~]$ sudo nmcli connection add type ethernet con-name eth0 ifname eth0 master bond0
[archy@server ~]$ sudo nmcli connection add type ethernet con-name eth1 ifname eth1 master bond0
Note that since RHEL 7.5 / CentOS 7.5 the type 'bond-slave' does not exist anymore. Therefore we have to pass 'type ethernet' to the network manager.The Interfaces are now created and assigned properly. The next step is to raise the interfaces and bring up the connection.
[archy@server ~]$ sudo nmcli connection up eth0
[archy@server ~]$ sudo nmcli connection up eth1
[archy@server ~]$ sudo nmcli connection up bond0
The connection is now set up.Feel free to comment and / or suggest a topic.
Comments
Post a Comment