The Broadband Guide
SG
search advanced
 search
FAQs Categories:

How to tell Windows to use a different default network card ?

In the presence of multiple network adapters, it is sometimes necessary to manually specify which one is the default used for internet routing, for example. To accomplish this, you have to manually add a "metric" to each interface. Windows will automatically use the interface with a lower metric. To check and change your network adapters' metric:

1. Open Command Prompt and type: route print - you will see a list of active routes, the last column displaying their "metric". Lower metric routes are preferred over higher ones.

2. Open the Network Adapter Properties (Control Panel > Network and Internet > Network Connections > right-click on adapter and choose Properties)
3. Open the properties of Internet Protocol Version 4 (TCP/IPv4).
4. Click on Advanced.
5. Untick "Automatic Metric" and set the interface metric to a number.
6. Hit OK until you close the Network Adapter properties.
7. Repeat steps 2-6 for your other network adapter(s) choosing different metrics. Remember lower metrics are preferred over higher ones.


Under Windows 8/10, it is also possible to use Powershell Cmdlets to set NICs priority:

1. Open PowerShell and type: Get-NetIpInterface
Note the first column, the "ifIndex", or interface index, the column "InterfaceAlias", and the column labeled "InterfaceMetric" of each device. Ignore the Loopback pseudo interface lines.

2. Set the metric. On the appropriate network adapter, with the proper "InterfaceIndex" you want to change (let's say "11"), set the "InterfaceMetric", for example:
Set-NetIPInterface -InterfaceIndex 11 -InterfaceMetric 22

It is also possible to use the name of the interface ("InterfaceAlias") rather than the interface index to set the metric:
Set-NetIPInterface -InterfaceAlias "Ethernet 4" -InterfaceMetric 22



Notes:
Lower metric routes are preferred over higher ones.
Metrics can be checked in Command Prompt by typing: route print


  User Reviews/Comments:
    rate:
   avg:
by anonymous - 2013-01-11 11:09
Just what I was looking for! Thank you for your no nonsense explanation!
by anonymous - 2013-06-04 21:03
this helps,,thanks..
by Mostafa - 2013-08-24 04:39
Thanks alot, Keep going :)
by anonymous - 2013-09-10 11:03
This is what I am looking for too. It really helps.

This will also help to connect 2 networks. For example, some application connections to your company's network and some other application connections to your client's network using connection oriented applications such as Putty, SQLPlus. Once the applications connected, lower the Metric value for another network adapter, start the applications and connect to the other network.
by anonymous - 2013-09-17 01:54
great, thanks!
by anonymous - 2013-09-19 22:53
The only work around I could find on the net!! Thanks so much!!
-James
by anonymous - 2013-09-26 05:40
Thank you very much!!
by anonymous - 2013-10-29 19:26
It's works...thanks a lot.
by Rodz - 2013-11-06 19:28
Good job. it helps a lot.
by Alfonso - 2013-12-24 01:07
This solution worked right away. I gave metrics 111 to my Wireless Connection and 777 to my gigabit network card. Now, I have internet for my desktop and my virtual machines connect to the gigabit network, which is connected to work.
by college student - 2014-02-25 18:09
i tried this and it doesn't work for me
i have been trying to set my wireless connection to be preferred over my 3g modem, but it just doesn't work
by anonymous - 2014-03-16 02:28
This is great but I can only access my share files on my lan network but i can't access local websites which i have on our local network which is connected to our LAN network.

I can access the internet from my wireless card that is great.
by maurice - 2014-04-01 17:57
I got a little confused with gateway settings.. If I have, let's say, 3 diferent wireless adapters, and 3 diferents routers.. Can I set each one to acess one of the routers? I just set the gateway as the router and the metric? But how I'll set each application to go there.. sorry my "dumbness"! Cheers from South Florida! Maurice
by PachOOL - 2014-04-08 13:20
You are my GURU! Thanks! Very, very!!
by stelise - 2014-04-23 12:12
Thank you very much! Worked a charm.
by Govinda Ghimeray - 2014-05-22 01:59
worked very well for me..
Thank you so much
by mickey - 2014-07-17 13:53
Very good information!. My company had lost internet access but locally everything worked. I had to use my phone as a hotspot via usb so I had 2 network adapters By setting the iphone network adapter to a lower metric I was able to both use the internet and internally connect to our servers.

AWESOME tip.

THANKS.
by Infoseejer - 2014-07-30 11:35
This worked just great. I have been searching for this during the last two days. THANKS!!!!
by anonymous - 2014-10-30 17:33
Thank you very much. It really helped me a lot.!
by Sashi - 2014-11-26 05:03
This worked like a piece of cake. Thanks for the info.
by Fatima - 2014-12-17 00:19
Finally! This was exactly what was needed!
by vishnu - 2015-01-17 23:30
Thank you so much ... it worked ......
by erly - 2015-02-18 04:15
It works for me.... Thankyou
by Alex - 2015-02-23 02:53
Thanks, the best for field enginner!!!
by adic - 2015-03-04 11:16
Very good ! Solved a lot of problems
Thanks a lot!
News Glossary of Terms FAQs Polls Cool Links SpeedGuide Teams SG Premium Services SG Gear Store
Registry Tweaks Broadband Tools Downloads/Patches Broadband Hardware SG Ports Database Security Default Passwords User Stories
Broadband Routers Wireless Firewalls / VPNs Software Hardware User Reviews
Broadband Security Editorials General User Articles Quick Reference
Broadband Forums General Discussions
Advertising Awards Link to us Server Statistics Helping SG About