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.YYY/24
      gateway4: 192.168.5.ZZZ
      nameservers:
          search: [rainsbrook.co.uk, sub.rainsbrook.co.uk]
          addresses: [192.168.5.XXX, 1.1.1.1]

Static with Bonding

And VLANs

And Bridging on VLANS on Bonding

.


rb/ubuntu1804netplan.txt · Last modified: 29/11/2019 01:28 by andrew