So, I know this is possible, but I’m going nuts trying to figure it out.

I’ve got a server with dual NIC. 1st NIC is a PUBLIC IP of 174.X.X.X, 2nd is LAN of 10.1.120.0/24

I’ve got multiple VLAN’s subnets:

10.1.112.0/23
10.1.114.0/23
10.1.116.0/23
10.1.118.0/23

I need to configure my gateways and routes so that all traffic destined to any of the LAN IP subnets will route through the LAN NIC, and anything else with traverse the PUBLIC/WAN NIC.

Looking for insight as to best method? I currently don’t have a gateway entered on the LAN nic, but need to as devices on the VLAN’s mentioned above must be able to reach the server on the LAN NIC.
Thanks for your consideration.

1 Spice up

It is possible to set up static routes for the ranges used by your VLANs, but that would just mean the traffic goes out through your LAN NIC. It will still need a router or layer three switch to get to the other VLANS.

Or, if your VLANs are all running on the same fabric, give your LAN NIC an address on each of the VLANS.

In a command prompt

route add 10.1.112.0 mask 255.255.254.0 10.1.120.n metric 1 where n is the ip address of your LAN NIC

1 Spice up

You need a gateway device on the 10.1.120.0/2 network. You could route all 10.0.0.0/8 traffic to it.

route add -p 10.0.0.0 mask 255.0.0.0 10.1.120.xyz metric 1 where xyz is the last octet of the gateway you are routing the traffic to.

Having a dual homed server with public and private IP is a very bad idea. Only security devices and networking equipment should be doing that. Your server is not a firewall. Don’t put it in the position that a firewall should occupy.

1 Spice up

Don’t get me started. This is something I’m doing to try to get a service from an outside vendor. The whole thing is infuriating. It’s out of my hands, I just needed to get this crap-sandwich working. Looks like that master route did it. Thanks