2 Nics 2 Networks 1 Server

Hello Everyone,

I am new to Truenas and wanted to try and connect my Server to 2 different networks with the help of 2 Nics but I can’t find out how to configure the mics correctly so that I can still reach the webui from each network or at least get the frigat app to see my cameras on the second network.

The first NIC has the IP: 192.168.178.178

The second doesn’t get one and I can’t find out how to create a static IP for it.

Thanks for the help

Hi.

Perhaps the first NIC got its IP from the DHCP server (typically – your router). And your second network doesn’t have a dhcp server.

To set a static ip, untick dhcp checkbox on the interface, and then add an alias with a desired ip (and subnet mask). Something like 192.168.2.178/24.

Thank you.

I tried to do that but the settings doesn’t work in the test and it resets.

I tried as the alias 192.168.179.21/24

And both networks are with a router so DHCP should be on for both. But I can only have 1 NIC with DHCP activ.

No. Only one interface may be on DHCP. Networks need to be different subnets, and there can be only one gateway.

Mandatory question: What are you trying to achive?
(Most likely answer: It will not work the way you think/want.)

I want if it is possible be able to get to the webui from both networks. If not I will just try to set it up that my frigat app is on the second network and the webui on my primary network.

webui access should be possible if you’ve set the gui up to listen to 0.0.0.0 instead of one fixed ip.
You can set the listen ip for the webui under settings → general settings and top right corner settings for the gui section.

What exactly do you mean by “doesn’t work”? Was gui accessible via 192.168.178.178 (during the test period)?

So I got it working it was a little bit stupid but when I tried with the Test the server terminated every connection to any network. I think it was because I accidentally used a IP that was reserved in the router. I am really sorry to waste your time like that. Thank you

1 Like