Locally connected PC on NIC2 / LAN on NIC1

New to Linux & Truenas !

My TrueNAS server is running great with Immich & Jellyfin so far

However the 10gb unmanaged switch I purchased is running very hot and using 25w so I’d like to remove it.

So I was trying to connect the 2.5g LAN port (2) to my PC and the 10g LAN port (1) to my main router / LAN.

I tried bridge of the two ports that worked however was slow (speedtest down from 600 mbps to 300 mpbs)

My main lan is 192.168.70.0/24 with my router 192.168.70.254

So I set a static IP on 2nd LAN port in TrueNAS to 192.168.71.1 and my PC to 192.168.71.2. With a static route as below

I can login to TreNAS on 192.168.70.1 but cannot see the rest of the LAN from my PC & no internet access.

Any advice much appreciated.

Thank you Peter

OS Version:25.04.2.1

Product:N5 PRO

Model:AMD Ryzen AI 9 HX PRO 370 w/ Radeon 890M

Memory:92 GiB

The static route is unnecessary; 70.254 is already your default gateway.

How would you expect to? It’s a NAS, not a router. There’s nothing in it that’s going to forward packets between 192.168.70.0/24 and 192.168.71.0/24.

Best course of action is to go back to using the switch, or perhaps another, better one (this one draws only 18W max, and is fully managed).

Failing that, connect the PC to the LAN and to the NAS, and access the NAS using the 71.1 address.

2 Likes

Dan,

Many thanks … as with most things its a compromise … only one CAT6 from my house to the home office.

Was hoping that TrueNAS could forward traffic based on a static rote from one ethernet prot to another … I worked when I bridged but slowly.

If this is impossible die to TrueNAS haveing no routing function … then that’s a shame. Will buy a new router as you suggest.

Will listen out in case anyone has any other input … but appreciate your rapid reply

Dan,

I’m really enjoying having using 2,5gbps between my PC and NAS so switch you suggested would limit me to 1gbps I think … have a spare 2,5gbps port on the N5 Pro so seems a shame to waste

Ty

Peter

Mikrotik may have another model that does 2.5G on the RJ45 port. Or another option would be a RJ45-SFP+ module that does 2.5G. Or, if you like 2.5G to the NAS, presumably you’d like 10G even better–10G SFP+ NICs can be had quite inexpensively, so put one of those in the PC.

There are options.

Any plugins or other routing options or should I give up and buy a new switch?

Just to clarify. Why can’t you connect both your PC and NAS to your router?

I highly doubt it worked. And if it did, then there is probably a security bug in the truenas.

Seeing the teething pains even Intel had, 2.5G ports are a waste to begin with :roll_eyes:
If your network is all copper, you might be better with a Mikrotik CRS-304-4XG or a QNAP QSW-M2108.

Thank you.

Office is away from main LAN. Just 2 devices my N5 Pro NAS and my PC. One 10GBE CAT6 cable from main lan. Seems a waste to have a switch.

Configured a bridge between two ports which worked great and PC can see TB & rest of LAN / WAN but throughput was poor . Hence asking if static route would work

Ok, I assume that your router is located in your office.


While you have said that you have tried bridge and got subpar performance, let us suppose that it was caused by misconfiguration.

That’s how I would test it if I were you:

  1. Create a bridge. Check both of your NICs as members.
  2. Assign an IP on that bridge. That would be an IP of truenas. Perhaps it should be 192.168.70.1/24 in your case.
  3. Remove all IPs from both NICs.
  4. If your router has a DHCP, your PC would automatically obtain its IP (and other settings). You would need to switch PC’s NIC back from static IP. Or just assign an IP from this subnet – 192.168.70.2/24.
  5. All 3 devices are in the same subnet now.

I’m, like, 95% sure it would work.

There is an (old) rule of thumb that for one bit sent/switched, you would need one Hz of CPU performance. So if your target is 600Mbps, you would need roughly 600MHz, which is reasonable and shouldn’t be a bottleneck with contemporary (even 15 years old) desktop/server CPUs.
Or should it be multiplied by 2 for the 2 ports? Anyway, that doesn’t change much.

1 Like

Many thanks …

That was my first try .

Recreated as per uour kind instructions…

Again it worked but hbroughput is dire … (web speedtest 300 mbps vs 600 file transfer same)

So im giving up and buying a new switch .

Thanks for all the help.

Well, I thought your try involved multiple subnets, so…

BTW, there are cheap Chinese no-name switches there. With 2xSFP10 ports and 4x2.5G ports. My eats about 5-6W (idle). Can’t say for reliability, but didn’t have problems so far running two of them (and one with 1xSFP10 and 8x2.5G).

1 Like