I have a Windows Server Box with 2 NICs sitting in 2 Networks with a Gateway Router to a 3rd: e.g.:
A: 10.1.1.0/24 - Remote Network B: 22.214.171.124/24 - "DMZ" with GW Router to Network A on IP 126.96.36.199 C: 192.168.1.0/24 - Local LAN - Default Gateway 188.8.131.52 NIC1 is in Network B: 184.108.40.206 NIC2 is in Network C: 192.168.1.5 - gets settings via DHCP
I want to have access to/from network A. When I set the default gateway on NIC1 to 220.127.116.11 I can reach network A, but a config with 2 different default gateways is considered problematic/broken.
How to best solve this?
My first intuition was to set a route to network A via the router on network B:
route add 10.1.1.0 mask 255.255.255.0 18.104.22.168
- The route gets ignored. The command answers with OK!, a subsequent 'route print' does not list that route