Machine with multiple network interfaces

Is it possible to have two NICs working on a machine?
NIC #1 is connected to the private subnet 192.168.10.0/24, which only consists of the MaaS region+rack controller and the machines in question. These NICs get a IP address assigned by the MaaS DHCP, and they also PXE boot from this network.
NIC #2 is connected to the public subnet 192.168.1.0/24, which has all kinds of non-MaaS devices (printer, Laptops, vacuum cleaners…). The idea is that this network is used for the machines to access the internet, through the default gateway (OPENWRT) 192.168.1.1

Is this somehow possible? I can’t find any way to configure NIC #2, all MaaS has to say is this:
ens18 = NIC #1
ens19 = NIC #d

This is the netplan config from MaaS:

network:
    ethernets:
        ens18:
            addresses:
            - 192.168.10.5/24
            match:
                macaddress: 8e:57:8a:55:d4:2d
            mtu: 1500
            nameservers:
                addresses:
                - 192.168.10.10
                search:
                - maas
            set-name: ens18
        ens19:
            match:
                macaddress: c6:11:fb:c9:5e:e2
            mtu: 1500
            set-name: ens19
    version: 2

It specifically “blocks” ens19 :frowning:

I think I found it. There is a bug when selecting a Fabric in the “Edit Physical” mask, which jumps back to the fabric all the time. That’s why I thought this is a dead end. But it actually provides all the good stuff :tada:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.