Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

OpenShift 4: Installation Bonding Setup

OpenShift 4: Installation Bonding Setup

Objective

  • Setting up 2 x LACP bonding using boot params options.
For guidance on the boot params available look [here](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-anaconda-boot-options) .
(Cover image :

2 x LACP Bonding Interface Boot Options

BondInterfaceFunction
Bond0enp1s0
enp7s0
Default Gateway
Main interface
LACP Aggregate
Bond1eno1
eno2
Secondary Interface – Storage Traffic as example
LACP Aggregate
Non Default Gateway

This is an example for setting up bonding during installation from above table information:

<< TRUNCATED >> 
append ip=192.168.50.144::192.168.50.1:255.255.255.0:worker01.ocp4.local.bytewise.my:bond0:none  bond=bond0:enp1s0,enp7s0:mode=802.3ad,lacp_rate=fast,miimon=100,xmit_hash_policy=layer2+3 ip=10.8.0.144:::255.255.255.0::bond1:none  bond=bond1:eno0,eno1:mode=802.3ad,lacp_rate=fast,miimon=100,xmit_hash_policy=layer2+3 nameserver=192.168.50.254 
<< TRUNCATED >>
Notice that there are two times ip= and bond= options are being used in the above kernel boot option . We do this for every interface and its corresponding ip configuration.

For the ip configuration part, pay attention on the gateway . If the interface should not become a default gateway do not specify the gateway parameter as shown above for bond1 network configurations.

ip=ip::gateway:netmask:hostname:interface:none

Apart from LACP .3ad aggregate , any other bonding method supported by RHEL can be configured using below convention and guidance:

bond= Set up a bonding device with the following syntax: bond=name[:slaves][:options] . Replace name with the bonding device name, slaves with a comma-separated list of physical (ethernet) interfaces, and options with a comma-separated list of bonding options. For example:

bond=bond0:em1,em2:mode=active-backup,tx_queues=32,downdelay=5000

Extra Notes

  1. When we tried to use teaming driver , seems teaming is not available to use for now.

  2. Example of full active-backup bonding params:

label Install CoreOS 4.3.0 Worker Node
 kernel /openshift4/4.3.0/rhcos-4.3.0-x86_64-installer-kernel
 append ip=192.168.50.144::192.168.50.1:255.255.255.0::bond0:none bond=bond0:enp1s0,enp9s0:mode=active-backup ip=192.168.11.144:::255.255.255.0::bond1:none bond=bond1:enp7s0,enp10s0:mode=active-backup  nameserver=192.168.50.254 rd.neednet=1 coreos.inst.install_dev=vda console=tty0 console=ttyS0 coreos.inst=yes coreos.inst.image_url=http://192.168.50.10:8080/openshift4/images/rhcos-4.3.0-x86_64-metal.raw.gz coreos.inst.ignition_url=http://192.168.50.10:8080/openshift4/4.3.0/ignitions/worker.ign initrd=/openshift4/4.3.0/rhcos-4.3.0-x86_64-installer-initramfs.img
Muhammad Aizuddin Zali

Muhammad Aizuddin Zali

RHCA | AppDev & Platform Consultant | DevSecOps


Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.
Share:

Related Posts

OpenShift 4: Custom API URL Endpoint

OpenShift 4: Custom API URL Endpoint

Objective On top of the standard api.. as external API endpoint, we are going to serve this endpoint using custom URL as below: Custom API...

How to Fix a Failed PV in OpenShift Cluster

How to Fix a Failed PV in OpenShift Cluster

There are several cases a PV (PersistentVolume) appear as Failed in OpenShift or Kubernetes cluster. Once of the reason is wrong ClaimRef by which …

Infrastructre & hardware

Replacing a Failed Master Host on OCP 4.3.x

This procedure assumes that there is still an etcd quorum in the cluster. If you have lost the majority of your master hosts, leading to...

Start Your OpenShift Journey with these Free Red Hat Training Programs

Start Your OpenShift Journey with these Free Red Hat Training Programs

Red Hat OpenShift Container Platform is one of the best kubernetes platform for enterprises. As we know kubernetes and OpenShift are multi-component …

OpenShift Container Platform 3.11 Installation Documents

OpenShift Container Platform 3.11 Installation Documents

Since OCP 3.11 is available now, you may refer below documents for OpenShift Container Platform 3.11 Installation on different infrastructure or …

OpenShift 4: DHCPD High Availability

OpenShift 4: DHCPD High Availability

Objective One of the support component to install OpenShift 4 is the DHCP. We need to ensure this DHCP is resilient and highly available hence...