I'm trying to reinstall an Ubuntu server to 18.04.
I discovered that 18.04 uses Netplan, and I'm having trouble creating a bond interface using this.
Updated configuration:
############# BOND - VLAN ##################
network:
version: 2
renderer: networkd
ethernets:
switchports:
match: {name: "ens*"}
bonds:
bond0:
interfaces: [switchports]
parameters:
mode: balance-alb
vlans:
inet:
id: 50
link: bond0
addresses: [X.X.X.X/24]
gateway4: X.X.X.252
dhcp4: no
nameservers:
addresses: [X.X.X.33]
It seems that I shouldn't have 2 match statements and ens* in a single statement did it - I'll clean this up when I get it to work..
I have installed ifenslave & bridge-utils as someone suggested this, still nothing.
Also I've enabled the bonding module in /etc/modules
.
My original issue was that the interface was in UP state, but I could only ping the interface itself, not anything else.
I couldn't get this to work, so I ended up renaming the /etc/netplan/<name>.yaml
file and installing ifupdown
.
If anyone has a clue as to why this didn't work, I'll be happy to know :)