Packets for local (IPv4) subnets sent to the default gateway.
Hi, My computer has 2 NIC with different IP addresses and subnets. The first NIC (192.168.0.150/24) is connected to the Internet through a gateway (192.168.0.1), and the second (192.168.2.3/24) is only connected to a closed network. When I try to contact an IP address that belongs to the subnet of the second NIC (192.168.2.21 for example), Windows first send ARP requests through the 2nd NIC, but if the requests fail, it sends the traffic to the default gateway through the 1st NIC. For example: >ping 192.168.2.21 Pinging 192.168.2.21 with 32 bytes of data: Reply from 192.168.2.3: Destination host unreachable. Reply from 192.168.0.1: Destination host unreachable. Reply from 192.168.0.1: Destination host unreachable. Reply from 192.168.0.1: Destination host unreachable. Ping statistics for 192.168.2.21: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), See, the first and second ping requests aren't sent using the same route. And once Windows has chosen to route those packets to the default gateway, it won't stop using it until the route isn't used for a period of time, no matter if the host becomes reachable again on the 2nd link. Is there a way to change this behavior, so that traffic for local subnets is never sent to the default gateway ? I tried adding static routes and static ARP entries to force Windows to always send traffic for 192.168.2.21 using the 2nd NIC, but it didn't work. Windows XP doesn't route packets that way, and it seems that behavior has been introduced with Windows Vista (someone already complained about that on the Vista forum, but no solution has been provided. I post my message in the Win7 forum in the hope a solution exists for Win7).
July 13th, 2011 4:37pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics