How to select default network interface for internet?

38,280

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.

enter image description here

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.

Share:
38,280

Related videos on Youtube

Poma
Author by

Poma

Updated on September 18, 2022

Comments

  • Poma
    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
      Poma about 12 years
      I use it as backup when my PPPOE provider has problems
  • Poma
    Poma about 12 years
    thank 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
    Scott Chamberlain about 12 years
    It 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
    Poma about 12 years
    No, 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
    Scott Chamberlain about 12 years
    Misunderstood 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
    Brian Knoblauch over 8 years
    Does 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
    Scott Chamberlain over 8 years
    Do 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
    George Vasiliou over 5 years
    Great. 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.