Question Locked

2 nics 2 wans

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to hook up a PC with access to 2 WANS with different ISP. The PC needs to access both networks, both ISPs but each for a different tasks. It needs to use one ISP for regular internet access (browsing, msn, etc) and the other one just to access a specific program that will download some messages.

How do I separate these tasks? Is there a way I can tell the nic to just access the internet to check on the messages for a specific program?

7 replies

by drummerb0y

I think it may be possible by adding an entry into the PC's host file (c:\windows\system32\drivers\etc\hosts) ("hosts" is the file that needs to be modified). The part I'm not sure of is what IP address to put in there. The gateway of the NIC that needs to talk to the message server MIGHT work, but I'm not so sure. I think the broadcast address would work, but if this NIC is getting an address from the ISP, it might be difficult to determine the broadcast address of the ISP's subnet.

Otherwise, does the program doing the mail fetching have an option to input DNS server addresses, or better yet, a preferred NIC?

by scott_heath

you need to use the "route add" command to add a persistent route for a specific IP or network to use a specific interface. Example:

route add 68.25.13.46 mask 255.255.255.255 192.168.0.1 metric 1

Let me know if you need more info.

by drummerb0y

except they will need the NETSH command in front. Specifically...

netsh routing ip add persistentroute

by scott_heath

I use the dos 'route add" command as it is shorter than the netsh command. If I forgot, you have to had a /p to make the route persistant when using "route add".

by thevirtualone

2 ISP's
2 Lan's

we'll call 1 192.168.1.x
this one will have dns enabled

the second is 10.x.x.x on a VPN connection with no dns

this you can do.

by michael kassner

I saw in your first post that you forgot the "p" option, I also thought I would mention that it is -p and not /p. I made that mistake enough times.

This discussion is closed to new replies.