Monday, February 10, 2020

Centos 8 & Bonding 2 x 10GbE ports

uuidgen bond0, that will create the UUID needed

more /etc/sysconfig/network-scripts/ifcfg-bond0
BONDING_OPTS="downdelay=0 miimon=100 mode=balance-alb updelay=0"
TYPE=Bond
BONDING_MASTER=yes
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6_DISABLED=yes
IPV6INIT=no
NAME=bond0
UUID=1a59e993-a523-40b2-92f3-a59aef54d932
DEVICE=bond0
ONBOOT=yes
MTU=9000
MACADDR=00:51:82:11:22:02

more /etc/sysconfig/network-scripts/ifcfg-enp4s0f0
TYPE=Ethernet
NAME=enp4s0f0
UUID=e4d0c588-1938-4c5a-b8ec-f4c2af13991c
DEVICE=enp4s0f0
ONBOOT=yes
MASTER=bond0
SLAVE=yes

more /etc/sysconfig/network-scripts/ifcfg-enp4s0f1
TYPE=Ethernet
NAME=enp4s0f1
UUID=a1422007-0895-4817-97b5-2b07d960c7c1
DEVICE=enp4s0f1
ONBOOT=yes
MASTER=bond0
SLAVE=yes

Then activate the connections:
ifup bond0
ifup enp4s0f0
ifup enp4s0f1

Configured a LAG group in the switch for the ports in scope

Run next to check the status of the of the connection
> nmcli

[root@node-2 ~]# nmcli
bond0: connected to bond0
        "bond0"
        bond, 00:51:82:11:22:02, sw, mtu 9000
        ip4 default
        inet4 192.168.1.110/16
        route4 0.0.0.0/0
        route4 192.168.0.0/16

enp4s0f0: connected to enp4s0f0
        "Intel X550T"
        ethernet (ixgbe), 00:51:82:11:22:02, hw, mtu 9000
        master bond0

enp4s0f1: connected to enp4s0f1
        "Intel X550T"
        ethernet (ixgbe), A0:36:9F:27:B5:52, hw, mtu 9000
        master bond0

enp6s0: disconnected
        "Realtek RTL8111/8168/8411"
        1 connection available
        ethernet (r8169), A8:5E:45:E2:F1:04, hw, mtu 1500

No comments:

Post a Comment