How do I get lan traffic to primarily use one nic and (same router) but different nic for wan traffic. Nic 5gb is usb thus has more latency but ideally want it for lan file transfers and want the 1gb nic to be for web access. I am guessing this is a firewall/opnsense thing i can do or something with windows software?
I want lan file transfers to be one nic and wan access via the same firewall/router to be another nic.
Remove the default gateway from whatever NIC you want to use for LAN only use. This will force all internet traffic to use the NIC with the default gateway.
You will most likely need to add metrics to the NIC with the default gateway (aka : internet access) to force the local traffic to not use that NIC. But I’m not sure off hand how having two NICs on the same network shakes out (as back in the day I learned this stuff that was a no-no).
I think you’d also need to drop traffic destined for the LAN subnet on your “WAN” interface using firewall rules so your LAN traffic is actually forced onto the correct adapter.
Edit2: I’m of the opinion that using static routes like what ish mentioned earlier on is the more elegant solution.
Static routes are the way to go, but only use persistent routes for any traffic you don’t want to go to your default route. If you type “route print” in a CMD window you’ll see your present routes and you’ll notice 0.0.0.0 is already persistent by default.
Only add the exceptions to minimize any disruptions. I never trusted metrics for routing. I always set mine to 1 across the board.