Skip to content

How Do Network Interface Priorities Affect an Active VPN Tunnel?

When a computer has several network connections, the system ranks them. That ranking decides which path carries the VPN tunnel and which traffic goes inside it.

11 min readUpdated Nov 3, 2026By XPASS Editorial Team

How Do Network Interface Priorities Affect an Active VPN Tunnel?

A modern laptop is rarely connected in just one way. It may be on the office Wi-Fi while a USB-C dock offers a cable, a phone hotspot may be nearby, and a VPN adds its own virtual adapter on top. Each of these is a network interface, and the operating system has to decide, packet by packet, which interface a given piece of traffic should leave through. That ranking is what people loosely call interface priority.

When a VPN is running, this ranking quietly shapes everything: which path carries the tunnel, which traffic enters it, and what happens when the preferred connection changes. This article explains in plain terms how the system chooses, what the numbers called metrics do, and how a priority change can affect a tunnel that is already running. It stays on this one topic. For the basics of the tunnel itself, see what a VPN tunnel is, and for what happens when a phone changes network, see why a VPN reconnects when Wi-Fi switches to 5G.

What a network interface is

A network interface is any connection point between your device and a network. Some are physical, such as the Wi-Fi chip or the Ethernet port. Some are virtual, created by software, such as the adapter a VPN app installs. Each interface normally has:

  • an address, which may be a private one of the kind described in RFC 1918 or a public one;
  • a gateway, the next device that forwards traffic toward the wider internet;
  • DNS settings, which say where name lookups go;
  • a cost value, which the system uses when it has to choose between interfaces.

You can list them on most systems. Windows shows them under network adapters, macOS under Network settings, and Linux through commands such as ip addr. A typical laptop with a VPN running might show a Wi-Fi interface, a wired interface that is disconnected, and a VPN virtual adapter that is connected.

The key point is that having several interfaces up at once is normal, not a fault. The system does not "pick one interface and turn the others off". It keeps a table of routes and consults it for every packet.

How the system picks a path

The table the system consults is the routing table. Each entry says, roughly, "traffic for this range of addresses should leave through this interface, via this gateway, at this cost". When the system has a packet to send, it follows a small set of rules, set out in the way IP has always worked (RFC 791 describes the protocol).

  1. Most specific match first. If one route covers a narrow range of addresses and another covers a broad range, the narrow one wins. A route for your home network's range beats the general "everything else" route for traffic to a printer in that range.
  2. Lowest cost breaks ties. If two routes are equally specific, the system chooses the one with the lower metric. The metric is just a number: lower means preferred.
  3. A default route catches the rest. One route, usually written as "0.0.0.0/0" for IPv4, matches any destination that nothing else matched. Its interface is the one most traffic uses by default.

So "priority" is not a single switch. It is the result of specificity first and metric second. A common surprise is that a more specific route on a low-priority interface still wins over a general route on a high-priority interface.

Where metrics come from

Metrics are usually set automatically. On Windows, for example, the system can assign an interface metric based on the link speed, so a fast wired link tends to get a lower number than a slower wireless link. On other systems the defaults follow different rules, and some prefer wired over wireless by service order rather than by a number. Because these details differ between systems and versions, treat any specific number you read online as an example, not a rule, and check your own system.

What the VPN adds to the picture

When a VPN connects, it does two separate things that are easy to mix up.

First, the VPN software creates a virtual interface. This is where your protected traffic is handed over. The software then adds routes so that the traffic you want inside the tunnel is sent to that virtual interface instead of the physical one. In a full-tunnel setup, the routes point most or all internet traffic at the virtual adapter. In a split-tunnel setup, only some destinations or apps go in. The difference is explained in split tunnelling versus full tunnel.

Second, the tunnel itself needs a path to reach the VPN server. Those wrapped packets are ordinary internet packets, and they leave through a physical interface chosen by the same routing rules. To avoid a loop where the tunnel's own packets try to enter the tunnel, VPN software normally keeps a route for the server address pointing at the real gateway. Details differ by software, and this article does not describe how any particular app does it.

This gives you two decisions to keep apart:

Decision Question it answers What controls it
Inner path Does this traffic go into the tunnel at all? Routes pointing at the virtual adapter, and the tunnel's split settings
Outer path Which real connection carries the tunnel packets? Routes and metrics for the physical interfaces

Interface priority matters most for the outer path. If Wi-Fi and Ethernet are both up, the system's ranking decides which of them carries the tunnel to the server.

An example with Wi-Fi and Ethernet

Imagine a laptop at a desk. It is joined to the office Wi-Fi, and then you plug in a dock with a cable. Both interfaces now have a route to the internet.

Before the cable, the tunnel was built over Wi-Fi. The tunnel's outer address was the one the Wi-Fi network gave the laptop. After you plug in the cable, the system compares the two default routes. If the wired one has the lower metric, new traffic starts using it.

What happens to the running tunnel then depends on the VPN software and the system:

  • If the software notices the change, it may rebuild the tunnel over the cable, which looks like a brief pause.
  • If it does not notice, packets may keep leaving through Wi-Fi until that connection drops, or the tunnel may stall because replies now arrive on a different path.
  • If the software ties itself to a specific interface, it may ignore the new cable until you disconnect and reconnect.

None of these outcomes is guaranteed. They depend on how the app handles network changes. If you want a laptop-specific walkthrough of switching networks, see VPN when a laptop switches Wi-Fi networks.

When a priority change breaks or slows the tunnel

A tunnel that was fine can go wrong when the ranking changes under it. Typical signs and the usual reasons are below.

What you see A likely reason
VPN shows connected but pages stop loading right after plugging in a cable The tunnel's outer path moved to the new interface, and the old state is stale
The connection pauses for a few seconds, then recovers The app noticed the change and rebuilt the tunnel
Speed drops after a dock is connected Traffic moved to the other interface, which may be slower or more congested
Local devices such as a printer or shared drive disappear while the VPN is on The full-tunnel routes override the local ones, or the local range is on the interface that lost priority
Work-network resources work only on one connection Routes for that network were added for one interface only

Because these are only likely reasons, treat them as a starting point. A real cause is confirmed by looking at the routing table and the VPN's own status, not by guessing from the symptom alone.

How to check which interface is in use

You do not need special tools for a first look. Pick the steps for your system and note what you see before changing anything.

  1. List the interfaces. On Windows, open the network adapters list from Network and Internet settings. On macOS, open Network settings and look at the service list. On Linux, use ip addr in a terminal. Note which are connected.
  2. Find the default route. On Windows, route print in a terminal lists the routes and their metrics. On macOS, netstat -rn does something similar. On Linux, ip route is the usual command. Look for the entry that matches everything, and read which interface and metric it uses.
  3. Check the VPN's view. Open the VPN app and see whether it shows connected, and whether it offers any option about which connection to use. Do not assume the app has a setting that it does not show.
  4. Compare with and without the VPN. Check the routes before connecting and after connecting. The new entries pointing at the virtual adapter are the tunnel's inner path.
  5. Test the real path. Open a site that shows your public address and compare it with the address you see on the same network without the VPN. If the address is unchanged while the VPN claims to be connected, something is not routing as expected.

If you are checking for a leak at the same time, what a DNS leak is explains why name lookups sometimes use an interface other than the tunnel.

Changing priorities safely

Most people never need to edit metrics. If you do have a real reason, for example a laptop that keeps preferring a weak Wi-Fi link over a good cable, take a careful approach.

  1. Write down the current values. Take a note or a screenshot of the adapter list and the metrics before changing anything, so you can restore them.
  2. Change one thing at a time. On Windows, the adapter's advanced IP settings include an interface metric field. On macOS, the service order can be rearranged in Network settings. On Linux, the method depends on the network manager in use.
  3. Disconnect the VPN first. Make the change while the VPN is off, so the tunnel is not caught half way.
  4. Reconnect and test. Connect the VPN again and confirm that pages load and the public address looks as you expect.
  5. Undo if it gets worse. Put the old values back and reconnect. If the problem was already there, the metric was not the cause.

If you work on a managed computer, check with the administrator first. Corporate setups often set routes and metrics on purpose, and a manual change can break access that the company relies on. Your operating system's help, such as Microsoft's page on connecting to a VPN in Windows, is a safer first source than a random forum post.

Limits and what to watch for

Understanding interface priority helps, but it has limits.

  • It does not decide security. A higher priority interface is not a safer one. A VPN protects traffic that is sent into the tunnel. If some traffic is routed outside it, that traffic is not covered. For the wider picture of what a VPN does and does not do, the Cloudflare overview of VPNs is a neutral explainer.
  • Behaviour differs by system and by app. Windows, macOS, Linux, Android and iOS handle interface ranking in different ways, and VPN apps react to changes differently. Do not assume that a tip for one applies to another. On phones, the system usually manages the default network itself.
  • Hotspots and docks add surprises. Connecting a phone hotspot or a docking station adds interfaces you may not notice. A hidden second connection can become the preferred path.
  • IPv6 can behave separately. A device may have both IPv4 and IPv6 routes, each with its own ranking. If a tunnel only covers one, traffic on the other can take a different path.
  • Managed devices may forbid changes. Work or school computers can lock network settings. Do not try to override rules set by an administrator.
  • A VPN cannot make a poor connection good. If the best available interface is weak, ranking it first will not fix that. The tunnel can only be as good as the path under it.

If you see repeated drops that line up with docking or undocking, or with moving between rooms, the interface change is the first thing to rule out. The Help Center guide on improving VPN connection stability lists practical checks that apply to most devices.

A short checklist for everyday use

  • Before a call or a long download, decide which connection you want and disconnect the others if you can.
  • Connect the VPN after the network is settled, not while it is still changing.
  • If you plug in a cable, wait a few seconds and see whether the VPN recovers. If it does not, disconnect and connect again.
  • If a local device vanishes while the VPN is on, check whether the app has a local-network option before editing routes.
  • If speed feels slow, check which interface is actually in use. It may be the slower one.
  • Keep a note of any manual changes so they are easy to undo.

Summary

Network interface priority is the system's way of ranking its connections, using the most specific route first and the metric as a tie-breaker. With a VPN running, that ranking affects two things: which traffic enters the virtual adapter, and which real connection carries the tunnel to the server. When the ranking changes, for example after plugging in a cable, the tunnel may pause, rebuild or stall depending on the system and the app. Check the interface list and routes before changing anything, change one thing at a time, and reconnect to test. If you want a pass you can try on your own devices without a subscription, you can look at the options on the XPASS pricing page.

Frequently asked questions

What is a network interface?

A network interface is the part of your device that connects it to a network. Wi-Fi, a wired Ethernet port, a mobile data connection and a VPN virtual adapter are all interfaces. Each one has its own address and its own settings.

Which connection does my computer use when both Wi-Fi and Ethernet are on?

The system compares the routes it knows and prefers the most specific match for the destination. When several routes are equally specific, it uses the one with the lowest cost, often called the metric. Many systems give wired connections a lower cost than Wi-Fi by default, but this varies by system and settings.

Does the VPN tunnel run over the interface with the highest priority?

The packets that carry the tunnel travel over whichever physical interface the system picks for the VPN server address. The traffic you want protected goes into a separate virtual adapter first. So there are two decisions: which route sends your traffic into the tunnel, and which route carries the tunnel itself.

Can changing interface priority break a running VPN?

It can. If the system starts sending the tunnel packets over a different interface, the tunnel's outer address changes and the connection may need to be rebuilt. You may see a short pause or a reconnect. Changing priorities while a VPN is active is best done on purpose and with a reconnect afterwards.

Should I edit metrics by hand?

Usually not. The default values work for most people. Manual edits are for specific cases, such as a laptop that keeps choosing a weak Wi-Fi link over a good cable. If you do change them, note the original values so you can undo the change.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

VPN Basics

What Is a VPN Tunnel? A Simple Explanation

A VPN tunnel is not a place but a method: your data is wrapped inside other data and carried to the VPN server. See the anatomy, the life cycle and the limits.

9 min read

Troubleshooting

Can a VPN Connection Survive a Laptop Switching Between Two Wi-Fi Networks?

A laptop that hops from one Wi-Fi to another changes the path under your VPN. Here is what can carry on, what has to restart, and a clean routine for getting back online.

10 min read

VPN Security

Split Tunnel vs Full Tunnel VPN: Security Trade-Offs

Full tunnel sends everything through the VPN, split tunnel only some of it. Here are the security trade-offs and a simple way to choose between them.

9 min read