Networking Fundamentals Series

🔀 Understanding Windows Multi-Adapter Networking and Network Location Awareness from a "Top 1%" Perspective — Gateway Priority and NLA

Introduction

This article is part of the Top 1% Series’ full article guide, and part of the Networking Fundamentals Series. It assumes you understand the basic forwarding mechanisms of routers and switches from Understanding the Difference Between Hubs, Switches (L2SW), L3SW, and Routers from a “Top 1%” Perspective.

Prerequisites

Getting the Big Picture

In a Nutshell

When multiple network adapters are active at once, Windows decides which route to prioritize based on a priority value assigned to each adapter — automatically or manually — called the “interface metric.” Separately, and independently from that, a service called NLA (Network Location Awareness) judges whether the network each adapter is connected to is “Domain,” “Private,” or “Public,” and the Windows Firewall’s applied rules (profile) switch based on that classification. These two mechanisms have completely different purposes and criteria, but they share a common trait: both tend to cause problems in a situation where multiple network adapters are active at once.

graph TB
    subgraph Metric["Route priority (routing metric)"]
        WifiM["Wi-Fi adapter<br/>Metric: 25"]
        LanM["Wired LAN adapter<br/>Metric: 15 (lower = higher priority)"]
    end
    subgraph NLA["Network profile detection (NLA)"]
        WifiN["Wi-Fi adapter<br/>→ Private network"]
        LanN["Wired LAN adapter<br/>→ Unidentified network"]
    end
    Metric -.independent, separate mechanisms.-> NLA

Fundamentals, Explained Thoroughly

Multiple Active Adapters and Default Gateway Priority (Interface Metric)

Each of Windows’s network adapters is assigned a value called the interface metric (by default, calculated automatically, or set manually). This value indicates how strongly the route through that adapter is preferred — the lower the value, the higher the priority. When multiple adapters are active at once, each with its own default gateway, Windows effectively prioritizes the default gateway of whichever adapter has the lowest interface metric as the route actually used.

The symptom “enabling Wi-Fi while plugging in a wired LAN cable can sometimes make devices on the wired LAN unreachable” is precisely explained by this metric priority. If the Wi-Fi adapter’s metric is lower (= higher priority) than the wired LAN adapter’s, then even for traffic addressed to a device on the same segment as the wired LAN, if the PC judges the destination to be outside its own segment, it tries to send it toward the Wi-Fi side’s default gateway first — and the intended wired LAN route never gets used.

The basis for automatic metric calculation

Under Windows’s default setting (automatic metric), the interface metric is calculated automatically based on that adapter’s link speed (a faster adapter tends to be assigned a lower — that is, higher-priority — metric). However, this is purely a mechanical calculation based on link speed, and has nothing to do with whether that adapter is actually the right route to the network you want to reach. When you run into a symptom like the one above, where the priority ends up different from what you intended, you can explicitly control the priority by manually specifying the metric value — from ncpa.cpl, open the target adapter’s properties → the “Internet Protocol Version 4” properties → “Advanced,” rather than relying on automatic calculation.

Why Gateway Priority Matters Even for Traffic to the Same Segment

You might think, “if a device is on the same segment as the wired LAN, gateway priority shouldn’t matter.” But this only holds as long as the PC itself can correctly determine, based on the IP address and subnet mask configured on the wired LAN adapter, whether the destination is genuinely within the same segment. If, for some reason, there’s ambiguity in resolving the route (for example, the Wi-Fi side happens to have a similar address scheme configured, or a VPN connection has complicated the routing table), a different adapter’s route than intended can end up being chosen. For troubleshooting in practice, checking the actual routing table with the route print command, and directly confirming that the intended route has the intended priority, is the reliable approach.

Network Profile Detection: NLA (Network Location Awareness)

As a mechanism entirely separate from the interface metric, Windows has a service called NLA (Network Location Awareness). NLA’s job is to automatically determine whether the network each network adapter is connected to falls into the category “Domain,” “Private,” or “Public.”

CategoryBasis for classificationDefault firewall tendency
DomainReachable and able to authenticate against the joined AD domain’s DC via that networkA relatively lenient default rule set, allowing traffic needed for work
PrivateManually classified by the user as a “trusted network” (home, corporate LAN, and so on)A moderate default rule set, allowing a certain amount of traffic
PublicDoesn’t match either of the above (an untrusted network like café Wi-Fi)The strictest default rule set, tightly restricting inbound traffic

This network category is determined individually, per adapter. In other words, it’s entirely normal for a Wi-Fi adapter to be classified as “Private” while a wired LAN adapter on the same PC is classified as “Domain,” at the same time. And Windows Firewall applies a different profile (a different set of default inbound rules) per category, on a per-adapter basis.

What is an "unidentified network"?

A network that NLA judges to meet neither the “Domain” nor “Private” criteria (and that the user hasn’t yet manually classified) is treated as an “unidentified network,” and by default gets the same strict firewall rules as a public network. Even a wired LAN that should be able to reach an AD domain’s DC can end up being temporarily treated as an “unidentified network” if DNS resolution or the domain reachability check is delayed or fails temporarily for some reason, preventing NLA from finalizing its judgment.

The View From the Top 1% Perspective

A Real Incident in a NIC Teaming + Multiple Logical NIC (VLAN) Environment

Let’s diagnose the following real-world incident.

A server had two physical NICs configured as a team. On top of that team, four logical NICs were created, each assigned a different VLAN, and one of them had a gateway configured. Only that logical NIC with the gateway was recognized as “Ethernet 4” instead of “Unidentified network,” and could have its Windows Firewall profile set individually. The other three logical NICs were lumped together as “Unidentified network” and couldn’t be configured individually. After a server reboot, all the logical NICs became “Unidentified network.” Restarting the NLA service was attempted but failed with an error, so the affected logical NIC was individually restarted (disabled then re-enabled) instead, after which it was recognized as Ethernet 4 again.

This incident shows that, within NLA’s judgment logic, “whether a default gateway is present” is a particularly important clue for identifying and naming a network.

Why an “Unidentified Network” Can’t Be Configured Individually Per Logical NIC

Windows Firewall profiles are applied per “network” unit as identified by NLA. The logical NIC with a gateway was recognized by NLA as “a distinct network I can tell apart from the others,” so it could be assigned an individual profile. The multiple logical NICs without a gateway, on the other hand, were all lumped by NLA into the same single classification — “an unidentified network with no clear basis for distinguishing it” — so from Windows Firewall’s perspective too, they aren’t treated as separate entities per logical NIC; they’re treated as one shared group called “unidentified network,” with settings applied to all of them at once. If you want to configure the firewall separately for each individual logical NIC, you need to put each one into a state NLA can reliably distinguish — for example, by giving each a reachability-checkable route, or by explicitly hardcoding the network classification via Group Policy.

Common Misconceptions and Pitfalls

The Troubleshooting Perspective

Networking trouble in a multi-adapter environment is best approached by isolating whether it’s a route priority (metric) issue or a network profile (NLA/firewall) issue.

  1. A specific segment is unreachable: Check the routing table with route print, and confirm whether the intended adapter’s default gateway is actually taking priority (its interface metric value).
  2. An adapter that should be on a wired LAN (corporate domain) is treated as public/unidentified network, and the firewall is blocking traffic: Check whether that adapter can successfully verify reachability to a domain controller, and whether there’s a problem with DNS resolution.
  3. In a teaming + multiple logical NIC environment, network profiles aren’t individualized as intended: Check whether each logical NIC has a gateway (or some clear means of confirming reachability) configured.
  4. The network profile judgment resets every time the server reboots: Suspect the startup order/timing of the NLA service and its dependent networking components, and consider building in a re-enable step for the affected adapter via a startup script if needed.

Preventive Measures and Permanent Fixes

Summary

What to Keep in Mind From Today

  1. When you run into a routing question in an environment with multiple active adapters, check the interface metric and actual priority with route print.
  2. If a network profile isn’t being individualized as intended, first check whether that adapter has a gateway (or some means of confirming reachability) configured.

That’s all 9 articles in the Networking Fundamentals series. If you’d like to review the whole thing by ear during a commute or while doing chores, check out [Listen] The Networking Fundamentals Series, Fully Recapped.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).