netplan config for two network interfaces
Solution 1:
This works. I would rather the nameservers and gateway at a higher level so that they're not associated with one of the interfaces, but perhaps I'm missing something.
/etc/netplan/01-systemd-networkd.yaml
--
network:
version: 2
ethernets:
enp0s3:
addresses: [192.168.0.128/24]
gateway4: 192.168.0.1
nameservers:
search: [yourdomain]
addresses: [8.8.8.8,8.8.4.4]
enp0s8:
addresses: [192.168.56.128/24]