Anyone familiar enough with Netplan?
I'm a bit confused on how to configure an Ubuntu 18 server with two NICS using Netplan. Each NIC is on a separate subnet. They are directly connected to separate router interfaces on the router (this is a SMB router so each interface is configured as a different subnet).
So for example on the server I have two NICs named below with the appropriate information they need:
eth0 - 192.168.2.2/24 gateway - 192.168.2.1 dns - 192.168.2.1
eth1 - 192.168.22.2/24 gateway - 192.168.22.1 dns - 192.168.22.1
I was playing around with the source routing example at netplan.io, but its not quite what I want. I don't want to route all outgoing traffic through just one interface. I need to be able to route traffic out of eth0 through eth0's gateway and I need to be able to route traffic out of eth1 through eth1's gateway.
I'll let the router handle routing between the two subnets via firewall rules. I just need Neplan to play nice with my two NICs and let me setup two subnets each with its own gateway information. Any ideas?