netplan – Example confuguration

network:
  version: 2
  renderer: networkd

  ethernets:
    enp3s0:
      dhcp4: no
      dhcp6: no

    enp4s0:
      dhcp4: no
      dhcp6: no

  vlans:
    vlan.100:
      id: 100
      link: enp3s0
      dhcp4: no

    vlan.101:
      id: 101
      link: enp4s0
      dhcp4: no

    vlan.102:
      id: 102
      link: enp3s0
      addresses: [172.16.0.1/24]

  bridges:
    br0:
      dhcp4: yes
      dhcp4-overrides: {route-metric: 10}
      interfaces:
        - vlan.100

    br1:
      dhcp4: yes
      dhcp4-overrides: {route-metric: 250}
      interfaces:
        - vlan.101