Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do I change the default interface for internet...

20 Apr 2010   #1

DT and LT: Windows 7 and Fedora 14
How do I change the default interface for internet...

Is there a way to get Windows to use a specified adapter as the default internet connection interface? I have tried editing the routing table and made some progress, but the problem is that if I use the command "route -p add MASK metric 25 if 13" but if I unplug the adapter that was set to be default (13 specifies my wireless adapter that I want to use for internet by default) if will not allow me to connect on my wired connection (adapter number 11).

If I have both the wireless adapter and the ethernet cable plugged in, I will by default get my internet access from the ethernet port. The problem with this is that I live in a dorm where wall connections get rate limited if we exceed 2GB in a 24 hour period. I have managed to get a reasonable connection to a campus wifi network across the street (these are not rate limited) but if I have both plugged in, it will default to the dorm connection. I want to make the wifi connection the default connection, and if I have to, use the dorm connection as the fall back (in case I loose the signal).

I have a theory that if I can make the interface number of the wifi adapter lower than the interface number of the ethernet connection, I will be able to get the computer to use the wifi connection by default. Am I right in this thinking, and if so, how do I do it?

EDIT: Figured it out. It doesn't matter what the interface number is. Windows will pick whichever connection costs it the least. this is defined by the metric. So all you have to do is change the metric of the desired interface to something that is lower than the metric of the undesired connection and you are good to go. What I wonder is if this means if you made the metrics equal, could you double your speed (ie load balancing)?

My System SpecsSystem Spec
21 Apr 2010   #2


the question is what is ?
is it the IP gateway from your wireless ? If it is, so you're right.
check your computer routes using "route print"
and if you want to make it as default set with lowest metric

eg :
route add -p mask <wireless gateway IP> metric 0 -> default route
route add -p mask <wired gateway IP> metric 20 -> secondary route
My System SpecsSystem Spec
22 Apr 2010   #3

DT and LT: Windows 7 and Fedora 14

Ok, I think that setting the metrics to be equal will do some sort of load balancing, but not on a packet by packet basis. That would be the holy grail if I could figure out how to do that.....
My System SpecsSystem Spec

23 Apr 2010   #4


Windows can do load balancing also if you set equal metric.
But i will not do perfectly like router do.
My System SpecsSystem Spec
11 Oct 2011   #5

Windows 7 32 Bit

What you want is just to send your internet traffic to a particular interface, not all your network traffic. Opening a command prompt and using the Route Print command, you'll see a route for your network traffic, which is how Windows views your internet traffic. Type route change mask <gateway> metric 10 if <interface#> press enter. This will direct all your internet traffic to the interface you typed in the command, and leave all your other network traffic to go out their normal interface.

In Windows 7 you might also see a route for traffic. Repeat the previous command for this route also.
My System SpecsSystem Spec

 How do I change the default interface for internet...

Thread Tools

Similar help and support threads
Thread Forum
Internet Explorer - Change Default Download Location
How to Change Default Download Location in IE9, IE10, and IE11 This will show you how to change the default download location that IE9, IE10, and IE11 saves to by default to be any folder that you select instead of the default C:\Users\(user-name)\Downloads folder. In Windows 8, the IE10...
Change the default gateway to the internet to 3G connection
Hi all I am connected to a windows domain LAN and a 3G network adapter at the same time. Now by default, the Computer connects to the internet via the LAN. Now at times the internet via the LAN is VERY slow, so I would like to override it with the 3G connection, so that all internet traffic...
Network & Sharing
i can't change my wallpaper in windows 7 error no such interface supp
i can't change my wallpaper in windows 7 error no such interface supported idont now what the problem this massgge :sleepy:
Hardware & Devices
Is it possible to change IE9's interface to that of IE7 or IE8?
I recently upgraded to IE9 and I am absolutely appaled at the interface. The changes in it remind me of why I usually hate upgrading my software in the first place. To get to the point: Is there any way to restore some or all of the interface of IE7/8? Items of note that I'd like to alter...
Browsers & Mail
Need to change settings in Windows 7 PerfMon / interface is disabled
In Windows 7, PerfMon settings can't be changed. All the buttons, dropdowns are disabled (greyed out). Tried "taking ownership" of PerfMon app, changing permissions, but still shows READ_CONTROL and SYNCHRONIZE as enabled. Tried many different approaches but with no success. Any ideas? Need...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:05.
Twitter Facebook Google+