Problem with setting VLANs

Hi everyone, I have started to use Truenas Scale since a couple of weeks now, but there is 1 thing I can’t seem to find a way.
Last week I installed a new NIC (intel X710 with 2 SFP+ ports of course) and I want to setup new VLANs. I have a gateway in my home (ubiquiti UDM SE) and the 2 SFP+ ports are of course attached to my truenas scale server.

  1. Port1 (only has native vlan3 and other vlans are blocked) → this is the port that gives truenas scale the IP (which is correct)
  2. Port2 (native vlan2, and tagged vlan6 and vlan7)

At the moment Port1 gets an IP from vlan3 (correct) and Port2 get IP from vlan2 (also correct). As soon as I try to create a vlan and attach it to use port2 as interface, the test starts but changes are rolled back and I can’t understand why.

The only “strange” thing I noticed, is that before applying changes I get prompted to add a gateway IP and here I have tried to use gateway of vlan3, gateway of vlan2 and also gateway of vlan6, but in all cases I get this error → 192.168.XX.1 is not reachable from any interface on the system.

Can someone help, please?

I solved the issue by adding an alias to each network interface. Now I have another issue, I have tried to create a docker macvlan network from a vlan network on the host, but those containers are not reachable, do you have any idea? I can see the container showing up in the UI of udm, but for some reason I can’t reach it… can it be a firewall rule in truenas?