Home » Questions » Computers [ Ask a new question ]

How to tell Windows 7 to ignore a default gateway

How to tell Windows 7 to ignore a default gateway

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).

Asked by: Guest | Views: 180
Total answers/comments: 2
Guest [Entry]

"You can try to force the metric for the 10.0.0.0 adapter to be higher than the 192.168.0.0 adapter. This should push Windows 7 to prefer the 192.168.0.0 adapter when routing to a network that is not directly connected.

Open the Properties of your 10.0.0.0 network adapter.
Open the properties of Internet Protocol Version 4 (TCP/IPv4).
Click on Advanced.
Uncheck Automatic Metric and set the Interface Metric value to a high number, say 2000.
Hit OK until you close the screens.

You can view what metrics are used using the route print and looking at the metric column for the routes listed. Windows 7 uses a more dynamic metric than the previous versions, so you'll want to make sure you set the 10.0.0.0 adapter to a high enough number to prevent it from being lower than your 192.168.0.0 adapter."
Guest [Entry]

If you can't turn force the internal network's router to stop handing out a default gateway address altogether, then perhaps you could simply have the internal network's router hand out the same gateway address as the other router.