So, I know this is possible, but I’m going nuts trying to figure it out.<\/p>\n
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<\/p>\n
I’ve got multiple VLAN’s subnets:<\/p>\n
10.1.112.0/23
\n10.1.114.0/23
\n10.1.116.0/23
\n10.1.118.0/23<\/p>\n
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.<\/p>\n
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.
\nThanks for your consideration.<\/p>","upvoteCount":1,"answerCount":5,"datePublished":"2017-04-03T14:48:35.000Z","author":{"@type":"Person","name":"michaelchristie1951","url":"https://community.spiceworks.com/u/michaelchristie1951"},"acceptedAnswer":{"@type":"Answer","text":"
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.<\/p>\n
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.<\/p>\n
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.<\/strong><\/p>","upvoteCount":1,"datePublished":"2017-04-03T16:58:09.000Z","url":"https://community.spiceworks.com/t/a-little-windows-routing-help/571359/4","author":{"@type":"Person","name":"kevinhsieh","url":"https://community.spiceworks.com/u/kevinhsieh"}},"suggestedAnswer":[{"@type":"Answer","text":" So, I know this is possible, but I’m going nuts trying to figure it out.<\/p>\n 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<\/p>\n I’ve got multiple VLAN’s subnets:<\/p>\n 10.1.112.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.<\/p>\n 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. 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.<\/p>\n Or, if your VLANs are all running on the same fabric, give your LAN NIC an address on each of the VLANS.<\/p>","upvoteCount":0,"datePublished":"2017-04-03T15:21:18.000Z","url":"https://community.spiceworks.com/t/a-little-windows-routing-help/571359/2","author":{"@type":"Person","name":"librarian","url":"https://community.spiceworks.com/u/librarian"}},{"@type":"Answer","text":" In a command prompt<\/p>\n 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<\/p>","upvoteCount":1,"datePublished":"2017-04-03T15:36:02.000Z","url":"https://community.spiceworks.com/t/a-little-windows-routing-help/571359/3","author":{"@type":"Person","name":"librarian","url":"https://community.spiceworks.com/u/librarian"}},{"@type":"Answer","text":"
\n10.1.114.0/23
\n10.1.116.0/23
\n10.1.118.0/23<\/p>\n
\nThanks for your consideration.<\/p>","upvoteCount":1,"datePublished":"2017-04-03T14:48:35.000Z","url":"https://community.spiceworks.com/t/a-little-windows-routing-help/571359/1","author":{"@type":"Person","name":"michaelchristie1951","url":"https://community.spiceworks.com/u/michaelchristie1951"}},{"@type":"Answer","text":"