How to tell Windows 7 to ignore a default gateway
Posted
by zildjohn01
on Super User
See other posts from Super User
or by zildjohn01
Published on 2009-12-02T14:57:31Z
Indexed on
2010/04/23
4:53 UTC
Read the original article
Hit count: 353
I currently have 2 network cards in my PC -- one connected to an internal network on a router with a disconnected WAN port (10.x.x.x), and one connected to the internet through a consumer router (192.168.0.x).
Windows seems to recognize them correctly (my "Network and Sharing Center" lists them as "No Internet" and "Internet" respectively), however when I try browsing the internet it always tries the internal network's default gateway, rather than the one with internet access. Trying to ping a website results in "Reply from 10.0.0.1: Destination net unreachable.
".
A simple "route delete 0.0.0.0 mask 0.0.0.0 10.0.0.1
" fixes the problems, but they return upon reboot, or upon renewing my IP.
Is there any way to tell Windows to ignore one NIC's default gateway, or to at least give them priorities?
© Super User or respective owner