How to config two different ip and gateway on two different NIC

ip-routingwindows-server-2003

Sorry for my poor english in advance.

I don't know how to config my adapters for this specific situation as i explain below.

i have two NICs, one for web server and internet vpn and another for internet proxy server.

let's say for example my first NIC config is:
IP:198.25.143.196
Subnet:255.255.255.0
Gateway:198.25.143.209

and my secound NIC config is:
IP : 185.43.12.154
Subnet: 255.255.255.240
Gateway: 185.43.12.145

Also consider that i enabled routing and remote access for NIC1 and in NAT/Basic firwall i added my 1st NIC and selected public interface connected to the internet and just checked Enable NAT on this interface. when i don't config default gateway for NIC2 vpn works fine but proxy doesn't. when i don't config default gateway for NIC1 proxy server works fine but vpn doesn't. and when i config default gateway for both NIC (even though i know this is wrong), windows shoes me a warning and both vpn and proxy server works randomly and very slow.

So here is the question: how do i config my gateways (or maybe add static routes i don't know) for my NICs to both vpn and proxy server working correctly?

Best Answer

You can setup static route for the 2nd gateway.

how to add static route manually :

  1. open command line (CMD)

  2. Command format "route ADD destination_network MASK subnet_mask gateway_ip metric_cost", for example :

route ADD 185.43.12.154 MASK 255.255.255.240 185.43.12.145
  1. write on cmd "route print -4"

  2. tries to check the static route working or not using "tracert"

Related Topic