Install Hyper-V, and let’s learn it’s Networking
Hyper-V Networking
On VMware, when you install the OS (ESXi) on the hardware in the DCUI you simply set the VLAN tag right on the network interface you configure, and bind it to a physical NIC in the menu area, simple.
We leave the network connected to a non tagged, internet allowed connection. Now we can configure our networks.
1. Create one external switch
- Bind it to your physical NIC (configured as a trunk on the upstream switch).
- Check “Allow management OS to share this network adapter” once — this creates the first host vNIC.
2. Add more host vNICs via PowerShell:
# Add another vNIC for the host bound to the same external switch
Add-VMNetworkAdapter -ManagementOS -Name "HostVLAN20" -SwitchName "ExternalSwitch"
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "HostVLAN20" -Access -VlanID 6
3. Verify in Windows
- You’ll now see multiple vEthernet adapters in the host OS (e.g., “vEthernet (HostVLAN20)”, “vEthernet (HostVLAN30)”).
- Assign IP addresses or enable DHCP as needed.
*Note* this is for doing it on a single network server (for my lab use) usually you’d have dedicated NICs for other networks designated on those servers… anyway.. where was I… right now that we got additional network on the server we can work on a shared storage, you know how I like my iSCSI.
Great question — this trips up a lot of people when they first use Hyper‑V! Let’s break it down clearly:
🖧 Hyper‑V Default Switch Behavior
- Introduced in Windows 10 (1709): The “Default Switch” is automatically created by Hyper‑V and cannot be deleted or modified.
- NAT (Network Address Translation): Yes — the host machine provides NAT services. This means your VM’s traffic is translated and routed through the host’s network connection, regardless of whether that’s Wi‑Fi, Ethernet, or even VPN.
- DHCP Services: The host also runs a lightweight DHCP service for the Default Switch. This is what hands out IP addresses to your VMs automatically (usually in the
172.16.x.xrange). - Connectivity: VMs connected to the Default Switch can reach the internet and other devices on the host’s network, but inbound connections from the LAN to the VM are limited. It’s designed for convenience, not for complex networking setups.
⚖️ Comparison with Other Switch Types
| Switch Type | Provides DHCP? | Provides NAT? | Use Case |
|---|---|---|---|
| Default Switch | ✅ Yes (host DHCP) | ✅ Yes (host NAT) | Quick setup, internet access without config |
| External Switch | ❌ No (relies on external network DHCP) | ❌ No | VM directly on physical network, full LAN visibility |
| Internal Switch | ❌ No | ❌ No | Communication between host and VMs only |
| Private Switch | ❌ No | ❌ No | Communication between VMs only |
✅ So to answer directly:
Yes — when you connect a VM to the Default Switch, Hyper‑V’s host acts as a DHCP provider and NATs the VM’s traffic to whatever network the host is connected to. It’s essentially a convenience bridge so you don’t have to manually configure networking.
Exactly — you’ve nailed the distinction. The Default Switch in Hyper‑V is deliberately not a true Layer‑2 bridge to your host NIC. It’s a convenience construct that Microsoft built to “just work” for internet access without requiring you to mess with VLANs, external switches, or DHCP servers on your LAN.
Here’s the breakdown:
🔌 Why the Default Switch behaves like NAT
- It’s implemented using Windows Internet Connection Sharing (ICS) under the hood.
- ICS is a Layer‑3 service: it provides a private subnet (usually
172.16.0.0/12), runs a DHCP service, and NATs traffic out through whatever adapter the host is using. - That’s why VMs on the Default Switch don’t see your LAN’s DHCP server — they only see the host’s mini DHCP/NAT service.
- It’s intentionally isolated so you don’t accidentally expose VMs directly to your corporate or home LAN without realizing it.
⚖️ Why it’s not Layer‑2 bridging
- A true Layer‑2 bridge would forward broadcasts (like DHCP Discover) from the VM to your LAN. That’s what an External Virtual Switch does.
- The Default Switch instead terminates those broadcasts at the host and answers them itself. That’s why you only ever get the host‑provided DHCP.
- VLAN tagging, trunking, or other advanced networking features aren’t supported on the Default Switch — it’s locked down.
✅ When to use each
- Default Switch (NAT + DHCP): Quick internet access, testing, dev boxes, laptops where you don’t want to reconfigure NICs.
- External Switch (Layer‑2 bridge): When you want VMs to behave like physical machines on your LAN, get DHCP from the real network, or use VLAN tagging.
- Internal/Private Switches: For host‑VM communication or VM‑VM only networks.
So your expectation — that the Default Switch would act like a transparent Layer‑2 bridge — makes sense, but Microsoft intentionally designed it as a Layer‑3 NAT gateway instead. If you want “real switch” behavior, the External Switch is the only way to go.
You’ve got it — that’s exactly how the Default Switch works in Hyper‑V. Let me spell it out clearly:
🌐 How traffic flows with the Default Switch
- VMs get private IPs: Each VM connected to the Default Switch is assigned an IP from the host’s internal DHCP service (usually
172.16.x.x). - Host does NAT: The Hyper‑V host translates those private IPs into its own IP before sending traffic out to the physical network.
- Firewall visibility: From the perspective of your upstream firewall or router, all traffic from those VMs looks like it’s coming from the host’s IP. The firewall never sees the VM’s private NATed addresses.
- Permissions: Whatever the host is allowed to do (e.g., access the internet, reach certain networks), the VMs can also do — because their traffic is piggybacking on the host’s connection.
⚖️ Important implications
- Outbound access: VMs can reach the internet or LAN resources as long as the host can. They inherit the host’s connectivity.
- Inbound access: External devices cannot directly initiate connections to those VMs, because NAT blocks unsolicited inbound traffic unless you set up port forwarding (which the Default Switch doesn’t expose for configuration).
- Firewall rules: The upstream firewall only enforces rules against the host’s IP. If you need per‑VM visibility or control, you’ll need an External Switch so each VM gets its own LAN IP.
✅ So yes: the Default Switch makes your VMs “ride along” with the host’s network permissions. They’re hidden behind NAT, which is why your firewall only ever sees the host’s traffic.
Additional Information
If you want to apply a VLAN tag to a physical NIC that’s not a Hyper-V host on Windows:
Since I didn’t see anything in the usual Network IPv4 configuration window in Windows. I decided to see how useful this AI stuff is.. so I asked it…
Quick Answer: On Windows 11, VLAN tagging isn’t enabled by default. You need a NIC that supports IEEE 802.1Q VLAN tagging, then configure the VLAN ID either through the NIC’s Device Manager properties (Advanced tab → VLAN ID) or by using Intel PROSet/ANS tools or PowerShell (Set-NetAdapter -VlanID) if your driver supports it.
🖥️ Steps to Configure VLAN Tagging on Windows 11
1. Check NIC Compatibility
- VLAN tagging requires a network card (NIC) that supports IEEE 802.1Q.
- Not all NICs expose VLAN options in Windows. Intel and Broadcom NICs often support it, but you may need vendor-specific drivers.
2. Configure via Device Manager
- Press Win + R, type
devmgmt.msc, and hit Enter. - Expand Network adapters, right-click your NIC → Properties.
- Go to the Advanced tab.
- Look for VLAN ID or Priority & VLAN.
- Enter the VLAN ID (e.g.,
100) and click OK.
3. Configure via Intel PROSet/ANS (if supported)
- Install Intel PROSet/Advanced Network Services (ANS).
- In the NIC properties, Intel’s tab allows creating multiple VLAN interfaces with different IDs.
- Each VLAN interface can then be assigned its own IP address.
4. Configure via PowerShell
- Open PowerShell as Administrator.
- Run:
Set-NetAdapter -Name "Ethernet" -VlanID 100 - Replace
"Ethernet"with your adapter name and100with your VLAN ID. - Note: This only works if your NIC driver supports VLAN tagging. Otherwise, you’ll get an error like “Requested operation not supported on adapter”.
5. Assign IP Address
- Once VLAN tagging is enabled, go to Network & Internet settings → Change adapter options.
- Right-click the VLAN-enabled adapter → Properties → Internet Protocol Version 4 (TCP/IPv4).
- Assign the IP address, subnet mask, and gateway for that VLAN.
⚠️ Important Notes
- Driver Support is Key: If your NIC driver doesn’t expose VLAN options, you cannot tag VLANs directly in Windows without Hyper-V or third-party tools.
- Hyper-V Alternative: You can create VLAN-tagged virtual NICs using Hyper-V’s Virtual Switch Manager if your hardware doesn’t support native tagging.
- Testing: Use
pingortracertto verify connectivity once VLAN tagging is applied.
✅ Bottom Line: To VLAN tag an IP on Windows 11, you must enable VLAN tagging on the NIC (via Device Manager, Intel PROSet/ANS, or PowerShell if supported), then assign the IP to that VLAN interface. If your NIC doesn’t support VLAN tagging, you’ll need Hyper-V or vendor-specific utilities.
That’s a great observation — the Intel 82579LM definitely supports VLAN tagging at the hardware level, but here’s the catch: Windows drivers for that NIC don’t expose VLAN configuration in the same way ESXi or Linux does.
🔎 Why You Don’t See VLAN Config in Windows
- The Advanced tab in Device Manager shows “Priority & VLAN” or “VLAN Enabled,” but that option only toggles whether the NIC can process VLAN-tagged frames.
- Unlike ESXi, Windows doesn’t let you directly assign VLAN IDs to a physical NIC unless the driver provides a VLAN interface creation utility (like Intel PROSet/ANS).
- For the 82579LM, Intel stopped including VLAN configuration in their Windows drivers after Windows 8/10. On Windows 11, the driver exposes VLAN capability but no UI to configure VLAN IDs.
✅ Workarounds
Here are the practical options:
1. Intel PROSet/ANS (if available)
- Older Intel drivers came with Advanced Network Services (ANS), which let you create VLAN sub-interfaces.
- On Windows 11, Intel no longer bundles ANS with drivers for the 82579LM, so you won’t see the VLAN tab.
2. PowerShell Command
- Windows has a
Set-NetAdapter -VlanIDcmdlet, but it only works if the NIC driver supports VLAN tagging through the OS. - On the 82579LM with current Windows 11 drivers, this usually fails with “Requested operation not supported”.
3. Hyper-V Virtual Switch
- If you enable Hyper-V, you can create a virtual NIC and assign VLAN IDs there.
- This is the most reliable way to do VLAN tagging on Windows when the physical NIC driver doesn’t expose VLAN config.
4. Third-Party NIC Utilities
- Some OEMs (Dell, HP) ship custom drivers/utilities that re-enable VLAN tagging. If your system vendor has one, that’s worth checking.
⚠️ Bottom Line
Your Intel 82579LM can tag VLANs, but on Windows 11 the Intel driver doesn’t expose VLAN configuration. That’s why you don’t see a place to set the VLAN ID.
- On ESXi/Linux → VLAN tagging works natively.
- On Windows → You need Intel PROSet/ANS (no longer supported for this NIC), Hyper-V, or vendor-specific drivers.
Well ok I guess once we install Hyper-V hopefully it’ll be more like ESXi in a sense and we can tag.
*UPDATE* ExternalSwitch, WiFi NIC
I was trying to use a Hyper-V server with an External Switch, bound to a WiFi NIC. and was getting unexpected results based on the above information. but my results were NOT as I had expected, I was assuming Default Switch behavior. You may be asking, “Why would you expect that behavior if you’re creating an External Switch?” Now, if you read my Wireless ESXi host blog, you probably are well aware of the VLAN limitations of WiFi, and can never truly be used as a trunk port (Limitation of the 802 standard, not of OS or software).
So how could a ExternalSwitch work, via WiFi if the layer 2 broadcast doesn’t work and can’t “speak” with the rest of the layer 2 stack? Yet I create a VM and it DOES get a DHCP lease address from my local subent?! What the heck is going on here…
So I had to ask AI, what was going on here, it says, yeah… that’s expected… here’s the deets… get ready.. it’s a long one….
BAH-LETED, there was way tooooo much BS from the AI response to justify keeping this data in here… long story short… Local subnet VMs work fine (it does ARP Masquerading), VLANs will never work per the usual BS I’ve talked about in my Wireless ESXi host blog.