Fedora Server Multiple Nics

I have 2 fedora 38 server installs with multiple nics I wish to use one for internet and all other lan activity and the other just for the 2 servers to comunicate sharing files and database. with the second nic operating at boot i cant load updates as if it is trying to use the wrong lan reach the internet. what is the proper way to set this up?

The most simple method is to specify a lower metric on the upstream interface.
Another possible way is to disable gateway on other interfaces.

The normal way is to assign a static IP address for the second interface with a different network prefix.

So if your first interfaces is at then for example assign to the second. The network prefix is 192.168.158.xxx and 192.168.160.xxx respectively.