How to select default network interface for internet?
Go in to your network adapter properties page for the non-PPPOE device, from there click on Internet Protocol Version 4
and go to Properties
, from there click Advanced
to get the following window.
Un-check Automatic metric if it is checked and enter 100 for the value of the 'Interface metric' box.
That value should be high enough to make your computer prefer the PPPOE link if the PPPOE link has automatic metric set.
If you are doing IPv6 you will need to set the same value in the Internet Protocol Version 6
properties page too.
Related videos on Youtube
Poma
Updated on September 18, 2022Comments
-
Poma over 1 year
I have 2 network interfaces. Both use DHCP to obtain ip address. First provides internet directly and second uses PPPOE connection. How to select which connection windows will use to connect to internet? I need both links to be enabled and want one with PPPOE to be my default.
P.S. I understand I can do it using console and
route
command but I want windows to do that automatically.-
Poma about 12 yearsI use it as backup when my PPPOE provider has problems
-
-
Poma about 12 yearsthank you, that works! One more question. Is there a way to tell windows to try to connect to PPPOE connection when it's not connected (like it does when there is no connection to internet)?
-
Scott Chamberlain about 12 yearsIt will just do it, it tries the lowest valued device that can connect to the destination, so if your normal link is down the PPPOE link will be the lowest valued connection (because the other one is down, so in essence it has a value of infinity)
-
Poma about 12 yearsNo, the PPPOE is the primary connection and direct link is secondary. I want it to try to automatically reconnect to PPPOE even when there is internet on secondary link.
-
Scott Chamberlain about 12 yearsMisunderstood you, there should be a redial option in the properties of the link settings, I do not have a PPPOE link on my machines so I can't tell you where to look.
-
Brian Knoblauch over 8 yearsDoes not work on Server products it appears. I tried this and Windows still chooses the wrong interface despite the higher cost metric (even across reboots).
-
Scott Chamberlain over 8 yearsDo you have a static route it is following? Static routes take priority over cost metrics, the cost metric only is used when there is a tie in the route table. Do a
route print
from the command line to see all routes, it also lists the metric value for each route. -
George Vasiliou over 5 yearsGreat. Worked at Win7 - 2018 . The smaller priority wins. I changed metric to both my adapters (lan and wifi), and packets travel through the adapter with the smaller metric number.