Linux: Interface BONDING dengan NETPLAN di Ubuntu 18.04
Sumber: https://www.snel.com/support/how-to-set-up-lacp-bonding-on-ubuntu-18-04-with-netplan/
Install Pendukung
apt install ifupdown ifenslave
Aktifkan Module
sudo su vi /etc/modules
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. bonding mode=6 miimon=100
Aktifkan module
modprobe --first-time bonding modprobe bonding modinfo bonding | more
Edit Interface
vi /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eports:
match:
name: enp*
optional: true
bonds:
bond0:
interfaces: [eports]
addresses: [192.168.0.8]
gateway4: 192.168.0.223
nameservers:
addresses: [192.168.0.223, 192.168.0.222]
parameters:
mode: 802.3ad
lacp-rate: fast
mii-monitor-interval: 100
Reboot and Check
reboot cat /proc/net/bonding/bond0