Looking for a steer on network configuration.
I have a local production switch and want to route all local traffic for 10.0.0.x from my mac pro to this switch. I have another switch in front of my internet router (because I am sharing the internet connection with my laptop) and am connecting to it from the mac pro on a separate ethernet port. I want all internet traffic - non-10.0.0.x - to go via this route.
The local switch has static IPs set for all the hosts (see diagram). The internet facing switch is just passing through DHCP - as I understand it.
I have no idea where to start to look to set this up. When I try and plug both in, the mac just picks the production switch for all traffic and so I have no internet connection. Can anyone point me in the right direction on this?
For clarity - I need to set the mac up to use one port for internet traffic and one port for local network.
I've attached a diagram of my setup in the hope that it provides more clarity on the problem.
EDIT: I think I have added a static permanent route now for the local network (using advice from http://networknucleus.com/2018/06/07/persistent-static-routes-in-macos/) but am struggling to add a route for internet traffic. Here is my routing table:
Routing tables Internet: Destination Gateway Flags Netif Expire default 10.0.0.1 UGSc en0 default 192.168.1.1 UGScI en8 10/24 link#4 UCS en0 ! 10.0.0.1/32 link#4 UCS en0 ! 10.0.0.1 bc:a5:11:26:e5:3f UHLWIir en0 834 10.0.0.10/32 link#4 UCS en0 ! 10.0.0.103 d4:e0:8e:6:30:77 UHLWIi en0 835 10.0.0.110 dc:ed:84:b0:12:8b UHLWI en0 1193 10.0.0.255 ff:ff:ff:ff:ff:ff UHLWbI en0 ! 127 127.0.0.1 UCS lo0 127.0.0.1 127.0.0.1 UH lo0 169.254 link#4 UCS en0 ! 169.254 link#20 UCSI en8 ! 192.168.1 link#20 UCS en8 ! 192.168.1.1/32 link#20 UCS en8 ! 192.168.1.1 78:d2:94:57:67:dd UHLWIir en8 1196 192.168.1.6 4:db:56:e8:82:83 UHLWIi en8 845 192.168.1.7 88:19:8:b:33:a6 UHLWIi en8 888 192.168.1.17 d4:61:9d:7c:d7:78 UHLWI en8 881 192.168.1.25 8:66:98:c0:e3:18 UHLWI en8 1117 192.168.1.33 48:65:ee:16:42:c2 UHLWIi en8 1185 192.168.1.34/32 link#20 UCS en8 ! 192.168.1.43 2:f:b5:45:d4:80 UHLWI en8 834 192.168.1.141 2:f:b5:d9:fa:4f UHLWI en8 835 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI en8 ! 224.0.0/4 link#4 UmCS en0 ! 224.0.0/4 link#20 UmCSI en8 ! 220.127.116.11 1:0:5e:0:0:fb UHmLWI en8 18.104.22.168 1:0:5e:7f:ff:fa UHmLWI en0 22.214.171.124 1:0:5e:7f:ff:fb UHmLWI en0 255.255.255.255/32 link#4 UCS en0 ! 255.255.255.255 ff:ff:ff:ff:ff:ff UHLWbI en0 ! 255.255.255.255/32 link#20 UCSI en8 !