Techub Knowledge Center
TechubKnowledge Center • Illustrated Guides • Troubleshooting

Describe the VM task or exact error — for example, a virtual machine will not start.

Virtual Networking & Connectivity • Virtualization & Virtual Machines

Use Default Switch or Plan a Custom NAT Network

Separate managed Windows client NAT from an administrator-built internal NAT.

DifficultyIntermediate; owner or authorized administrator
Time20–45 minutes for checks; installation, transfer or recovery can take longer
Guide typeIdentify, act & verify
GoalVerify the VM task and preserve recovery

Work on the intended VM. Use only hosts, guests and accounts you own or are authorized to manage. Start with read-only checks and a verified independent backup before disruptive changes. Host changes can affect every guest. Preserve complete virtual disk chains; never delete AVHDX files manually. Keep credentials and recovery keys private. Production, clustered, domain-controller and protected workloads require their supported recovery procedures.

First — identify the host, guest and task

Record the host OS/edition, guest OS, VM name and generation, state, disk paths, switch and exact error. These guides use Microsoft Hyper-V examples; other platforms use different controls. Screenshots may illustrate older interfaces or an optional management tool. Use current supported instructions and your own values. Do not copy sample resource amounts or network names.

What you’ll need

The Windows host version, chosen VM and switch, approved address plan, and an inventory of existing VPN/container dependencies. Custom networking requires an authorized host administrator.

Step 1 — Choose the right host workflow

For a supported Windows client test guest, inspect whether the managed Default Switch is available and suitable. Windows Server and a stable custom lab require their own design. Do not edit or delete the managed switch to force a fixed subnet.

What to look for: The actual host type and network requirement.

What the result means: Default Switch is not a universal Hyper-V Server feature.

Step 2 — Understand the NAT path

A guest sends traffic through its internal network to the host’s NAT and uplink. An internal switch alone does not create that NAT. Outbound translation does not automatically publish inbound guest services.

Custom NAT requires an internal switch, host gateway/NAT and suitable guest addressing; managed Default Switch is a distinct Windows client workflow. Techub concept diagram, not a software screenshot.
Custom NAT requires an internal switch, host gateway/NAT and suitable guest addressing; managed Default Switch is a distinct Windows client workflow. Techub concept diagram, not a software screenshot.Image: Techub · Source · View full-size image

What to look for: A complete guest-to-host-to-uplink path.

What the result means: A switch attachment by itself does not guarantee internet access.

Step 3 — Inspect existing networks before custom setup

An administrator should review existing switches, VPN routes, container networking and NAT use before choosing a nonoverlapping subnet. Follow Microsoft’s current WinNAT limits. Do not run a blanket Remove-NetNat or delete another application’s network.

Inspect host state without creating or deleting a network

In an authorized host PowerShell session with the required Hyper-V and networking modules, Get-VMSwitch lists switches and Get-NetNat lists NAT objects visible to that module. Inspect the selected VM’s Settings → Network Adapter to see which switch it actually uses. These queries do not create NAT or supply a guest address.

An empty Get-NetNat result is not proof that no application-managed networking exists. Review containers, VPNs and the managed Default Switch separately. If a cmdlet is unavailable or access is denied, resolve that prerequisite with the host owner instead of installing an unrelated network manager or removing existing switches.

What to look for: No address or NAT-service conflict.

What the result means: Other host services can already depend on the networking you are considering changing.

Step 4 — Configure only the planned custom network

If a custom design is required, follow the official NAT procedure with your approved internal switch, host interface address and NAT prefix. Review each operation before execution; the sample names and subnet in documentation are not values for every network.

What to look for: One coherent supported custom configuration.

What the result means: This is an administrator network change, not a universal copy-and-paste command.

Step 5 — Provide correct guest addressing

Custom WinNAT by itself does not assign guest DHCP settings. Supply the planned address, subnet, host-side gateway and valid DNS through an approved method. Managed Default Switch handles its own addressing; do not apply custom static examples to it blindly.

Walk through one custom IPv4 plan

Illustrative design only: a host-side gateway is 192.168.240.1/24 and a guest is assigned an unused 192.168.240.10/24 on that custom internal network. The guest’s gateway must be the actual host-side gateway on that same subnet. Its DNS server must be the resolver approved for the task, not automatically the gateway unless the design supplies DNS there.

Do not enter these sample values into a real host. First confirm they do not overlap its LAN, VPN or container routes. A guest using the managed Default Switch has a different addressing workflow; do not force this custom static example onto it.

What to look for: An address and route matching the actual chosen network.

What the result means: A guest can be attached to a switch and still lack a usable gateway or DNS.

Step 6 — Verify outbound access and isolation

Test the guest’s required outbound app and name resolution, then its intended peer boundaries. Avoid adding inbound mappings or disabling firewall rules merely to make a test succeed. Record the chosen network and dependencies.

Use a three-stage verification

  1. Check the guest’s actual address and default route against the chosen network.
  2. Check lookup of a legitimate name through its intended resolver.
  3. Open the required outbound application or HTTPS service from inside the guest.

If lookup succeeds but the app fails, investigate its destination, proxy or policy rather than adding an inbound port mapping. If the app works, test only the intended authorized peer boundaries; NAT is not a substitute for the host and guest firewall policy.

What to look for: The intended connectivity with no unintended service exposure.

What the result means: Outbound success does not mean an inbound service is reachable or should be published.

What did you find?
Default Switch meets a client lab needUse its managed addressing.
A fixed server lab is neededPlan a supported custom network.
A NAT or route conflict existsResolve it with the owner before changes.
Guest addressing is missingSupply the custom design’s approved settings.
Microsoft, guest OS & workload help

Follow Microsoft’s host-version-specific NAT workflow and limits. Managed Default Switch behavior differs from a custom internal switch plus WinNAT. Keep the network plan and rollback with the host owner; one successful guest connection does not verify every application-managed network.

Parts & supplies — only if needed

Most initial checks use supported management tools and approved access. Buy memory, storage, network equipment or backup media only after measurements and exact hardware, host and workload compatibility checks. Additional virtual allocation does not create physical resources.

Technical references

Techub’s troubleshooting guides are written in plain language and informed by manufacturer documentation. Features and procedures can vary by model. Before following model-specific steps, check the manufacturer’s latest instructions for your exact device.

Microsoft — Set up a NAT networkMicrosoft — Create and configure a virtual switch with Hyper-VTechub — virtualization virtual machines.htmlMicrosoft — Get-VMSwitchMicrosoft — Get-NetNat

Still need help?

Need help with a VM or Hyper-V task?

Bring the host and guest versions, VM state, exact error/time and checks already tried. Explain the backup and recovery position. Keep credentials, keys, internal addresses and private diagnostic data out of public screenshots.

Visit Techub Services ↗