Fix Hyper-V (Default Switch) IP address range 172 or 192

Anonymous
2020-10-30T19:50:11.327+00:00

Can I force Hyper-V default switch to always have the same exact network/subnet. I use GNS3 VM provided by GNS and I need to always connect to the same VM,

Everything was working correctly with (my home network devices are on 192.168.1.0/24)
Default switch had

172.22.0.0 mask 225.225.240.0

its ip is

172.22.144.1

1st machine IP is

172.22.159.156 mask 255.255.240.0

until I restarted my windows 10 for an update, default switch changed completely to

192.168.176.1/20 and the VM ip became 192.168.179.232

This completly disrupted several things.
1st, docker desktop started to fail to start as it is configured with neteork192.168.65.0/28
In hyper-V, when I try to connect to any VM, I get a message "video disconnected and can't display the machine to work with.
I needed to disable the Default switch, restart the VMs and docker, everythinbg went though, then enabled the default switch, still it was on the 192.168.176.1/20 network

So the question is how can force the default switch to always have the same network/subnet and not switch to 192

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

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-10-30T20:02:54.943+00:00

    You cannot change the default switch ranges. May be time to move to windows server where there is no default switch.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Anonymous
    2020-10-31T11:59:15.797+00:00

    Thanks, I know I have already win server 2016 and 2019 with HYper-V. I need to work on a software called GNS3 on my desktop win 10, I don't want to pulluate my servers

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.