Hello,
I set up two networks on my TrueNAS Core box. The first network is a 10.x network on a vlan and the second network is a dedicated storage network connecting to a aggregate switch and to my xcp-ng boxes on a 172.x network.
The issue im having is that I have the default gateway set for the 10.x network so the traffic from my xcp-ng boxes are coming in on the 172.x address but then because the default gateway is set on the 10.x network its returning on that network to the xcp-ng boxes. I put a static route in TrueNAS saying to push anything for the 172.x address to the 192.x network but TrueNas/FreeBSD is still sending the traffic over the 10.x network.
Whats the proper way to configure this? I’m assuming removing the default gateway and setting up a bunch of static routes would probably work but that becomes allot to manage with multiple networks connected to my router.
Current Config
In NIC ix0 and out NIC em0