I have a computer with Windows 7 and two network cards:

NIC 1: Gateway set to

NIC 2: Gateway not set

When an application tries to make connection to a device ( that is not connected (or ever has been) to the network, a packet is sent to the gateway on the network. This packet is refused by firewall rules and a TCP reset packet (RST, ACK) is sent back to the computer..

How can I sent up the computer to not send any packets bound for the network to the gateway?

  • Since you state you are using a /24 mask on NIC2 Windows should resolve this on its own. What does the output of 'route print' look like? – cpt_fink Mar 29 '13 at 4:25

You will need to add a new route to your route table. You can do this with the 'route' command funny enough:

route ADD MASK <New_Destination_IP>

Also if you want this to occur for only one interface you can add the interface specifier:

route ADD MASK <New_Destination_IT> if <Interface_Name>

Microsoft Reference Article about specifying static routes:


  • This will not work for directly connected routes... – cpt_fink Mar 29 '13 at 4:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.