Table of Contents
Ubuntu 18.04 Netplan
Ubuntu 18.04 used a YAML based file with Netplan to configure the networking. I need to set up a server for virtualisation hosting with bonded uplinks to the ethernet switch.
This page build on the basic config to have a bonded ethernet with a vlan driver next to pick off vlans from the bond0 interface, and then the bridging driver on the vlans to allow a guest to connect to any vlan presented.
Basic DHCP YAML config
network: version: 2 renderer: networkd ethernets: ens3: dhcp4: yes
Basic static address
network: version: 2 renderer: networkd ethernets: ens3: addresses: - 192.168.5.YYY/24 gateway4: 192.168.5.ZZZ nameservers: search: [rainsbrook.co.uk, sub.rainsbrook.co.uk] addresses: [192.168.5.XXX, 220.127.116.11]
Static with Bonding
And Bridging on VLANS on Bonding