dual nic access to 2 networks
Posted on 2004-11-26
How does an application decide which nic to go out when going to an external IP or network?
I have a home router going to internet with 192.168.1.0/24
I also have a home lab with 3 routers connected together and routing between them. The ethernet networks on these 3 routers are:
Then I have an Windows XP home box w/ 2 nics.
Nic 1 is connected to 192.168.24.0/24 default gateway is 192.168.24.1 (router connected to 192.168.20.0 and 192.168.101.0)
Nic 2 is connected to 192.168.1.0/24 default gateway is 192.168.1.1 router connected to internet.
If I try and ping 192.168.101.1 it fails.
If I disable Nic 2, then ping 192.168.101.1 it works.
Why does it try to go out Nic 2? How do I configure it to go out Nic 1 for 192.168.20.0 and 192.168.101.0 and go out Nic 2 for everything else?