# How-to bond multiple NIC for VLAN

**URL:** <https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990>\
**Category:** SUSE Virtualization\
**Created:** [May 23, 2022, 8:15pm UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990 "2022-05-23T20:15:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chelydridae](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/chelydridae/32/9032_2.png) [@chelydridae](https://forums.suse.com/u/chelydridae)\
**Post date:** [May 23, 2022, 8:15pm UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990/1 "2022-05-23T20:15:21Z")

</div>

As a newbie to Harvester I would like to know, how 2 physical NICs on our hardware can be used as a bonded uplink for the guest VLANs.  
The documentation under [Harvester Network - Harvester - Open Source Hyperconverged Infrastructure](https://docs.harvesterhci.io/v1.0/networking/harvester-network/) states in the note, that this is possible “via PXE boot configuration” - unfortunately the provided link ends in a 404 …  
I realized that there is a request for enhancement to make this possible during setup, best as it is already implemented for the harvester-mgmt-net - but in the meantime I would appreciate a how-to on how this could be configured - either during ISO setup or later on CLI.  
Thank you

---

<div class="post-metadata">

**Author:** ![crazyelectron](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/crazyelectron/32/9045_2.png) [@crazyelectron](https://forums.suse.com/u/crazyelectron)\
**Post date:** [June 10, 2022, 7:09pm UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990/2 "2022-06-10T19:09:47Z")

</div>

I had the exact same question. As I understand it, the only way is by using a custom configuration file during initial install, as described [here](https://docs.harvesterhci.io/v1.0/install/harvester-configuration/).

I’m going to give it a try myself and report back…

---

<div class="post-metadata">

**Author:** ![crazyelectron](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/crazyelectron/32/9045_2.png) [@crazyelectron](https://forums.suse.com/u/crazyelectron)\
**Post date:** [June 13, 2022, 2:31pm UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990/3 "2022-06-13T14:31:43Z")

</div>

Since setup of iPXE would take a bit more time to setup, I resorted to manually adding the VLAN bond for now.  
The steps are:

1. SSH into the server node and go to `/etc/sysconfig/network`.
2. Create files for each of the NICs you want to bond; in my case `enp3s0` and `enp4s0` so I created `ifcfg-enp3s0` and `ifcfg-enp4s0` with the following two lines:

```auto
STARTMODE='hotplug'
BOOTPROTO='none'

```

1. Create a file for your bond, like `ifcfg-harvester-vlan` with the following lines (tweak as needed):

```auto
STARTMODE='auto'
BONDING_MASTER='yes'
BOOTPROTO='dhcp'

BONDING_SLAVE_0='enp3s0'
BONDING_SLAVE_1='enp4s0'

BONDING_MODULE_OPTS='miimon=100 mode=balance-tlb '

DHCLIENT_SET_DEFAULT_ROUTE='yes'

```

1. Bring the newly created interfaces up with `sudo wicked ifup enp3s0 enp4s0 harvester-vlan`.
2. Check the status with `ip -br a`.

Refresh the UI and select the Host again to pick-up the new bond (if not, just reboot).  
Now you can select `harvester-vlan` as the cluster VLAN.

---

<div class="post-metadata">

**Author:** ![Ryan\_Mathieu](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ryan_mathieu/32/9204_2.png) [@Ryan\_Mathieu](https://forums.suse.com/u/Ryan_Mathieu)\
**Post date:** [July 6, 2022, 7:03pm UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990/4 "2022-07-06T19:03:28Z")

</div>

This solution appears to work well but after reboot, the changes made in /etc/sysconfig/network are not persistent. Am I missing a step ? I’m running Harvester 1.0.2 and logging into the nodes using the rancher username.

---

<div class="post-metadata">

**Author:** ![W0n9](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/w0n9/32/9239_2.png) [@W0n9](https://forums.suse.com/u/W0n9)\
**Post date:** [July 14, 2022, 9:48am UTC](https://forums.suse.com/t/how-to-bond-multiple-nic-for-vlan/37990/5 "2022-07-14T09:48:18Z")

</div>

You can modify /oem/99\_custom.yaml to persist your change.
