Change Hyper-V (Default Switch) IP address range

Gloria Gu 3,891 Reputation points
2020-07-16T08:01:38.047+00:00

Hello,

Is it possible to change the IP address range used by the Hyper-V (Default Switch) that is 172.x.x.x to 192.168.x.x ?

This is for Hyper-V on windows 10 1809 to 1909

Thread source link: https://social.technet.microsoft.com/Forums/windowsserver/en-US/6b2a9042-c590-4b5d-aa4c-60eb3f7901e8/change-hyperv-default-switch-ip-address-range?forum=winserverhyperv

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,543 questions
{count} votes

Accepted answer
  1. Xiaowei He 9,871 Reputation points
    2020-07-16T08:16:15.167+00:00

    Hi LMichel,

    We are unable to remove default Switch on windows 10 and unable to change the IP address range.

    "The Hyper-V Default Switch will randomly use one these IP address ranges based on the host system IP address:

    • Start IP: 192.168.0.0 – End IP: 192.168.255.255
    • Start IP: 172.17.0.0 – End IP: 172.31.255.255

    The Default Switch has a built-in local collision detection mechanism to determine if IP address in these ranges is already assigned to a network interface on the Local Host system and will try to find a (/28 – 255.255.255.240) address space within one of these ranges that is not already allocated to any network interfaces.

    The Default Switch on the Host system always assign the first IP address of the chosen range to the virtual Ethernet Adaptor on the Host, and use this address as the Default Gateway and DNS server provided to the hosted VMs connected to it.

    You cannot remove or manage "DHCP" on the default switch."

    Thanks for your time!

    Best Regards,

    2 people found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Chris Hill 191 Reputation points
    2022-11-04T13:13:24.183+00:00

    Came across this issue. Tried to use the PowerShell scripts at the bottom of the page to update the IP address, but they appear to stop the NAT functionality of the Default Switch from working.

    I have submitted a suggestion to the Windows Feedback Hub for Windows Insiders that the subnets used (or not used) by the Default Switch should be configurable https://aka.ms/AAinerp

    Please click the link and upvote to get this fixed.

    1 person found this answer helpful.