Ubuntu 18.04 Netplan

Intro

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.28/24
      gateway4: 192.168.5.1
      nameservers:
          search: [rainsbrook.co.uk, int.rainsbrook.co.uk]
          addresses: [192.168.5.24, 1.1.1.1]

Static with Bonding

And VLANs

And Bridging on VLANS on Bonding

.


rb/ubuntu1804netplan.txt · Last modified: 26/08/2019 00:15 by andrew