question

JoeriMichiels-1549 avatar image
0 Votes"
JoeriMichiels-1549 asked LimitlessTechnology-2700 answered

IP address is moved from virtual network adapter back to physical network adapter.

Hi,

We're using Windows Server 2019 to run Hyper-V that runs a virtual machine. When we initially created this virtual machine, we also created a virtual switch and assigned it to the VM, so that it would be able to connect to the network.
When creating this new virtual switch in Virtual Switch Manager we selected 'External Network' for the Connection Type.
When doing this it transfers the ip address configuration of the physical network adapter to the new virtual network switch.
All this works perfectly and the VM can reach the network when this setup is completed.

However for some time we have seen that on some of our Windows Servers the ip address was moved back from the virtual network adapter to the physical network adapter. Obviously at this point the virtual machine looses the connection to the network.

Since none of my colleagues confirmed that they have done this manual move, could it be that this can happen automatically ?
I've googled around but couldn't find a clue on this.
Do you know of any circumstances where this 'rollback' can happen automatically ?

Thanks for your ideas.

Best regards


Joeri

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

it transfers the ip address configuration of the physical network adapter to the new virtual network switch.

vSwitches do not have ip addresses. It sounds like the properties of the vSwitch may have been altered. When you create a new external vSwitch the internet protocols are removed from the adapter and the Hyper-V Extensible Switch protocol is added turning that physical port into a multi-port virtual switch. I'd suggest deleting / recreating the vSwitch.

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







· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if there's any progress or updates?

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



0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @JoeriMichiels-1549

This happens because some DHCP Servers will assign IP based on MAC address, and the virtual adapter MAC is "invisible for the DHCP server".

My recommendation would be:
- Configure MAC spoofing in the VM seetings
- disable VMQ , tcp/ip offload , RSS on that external virtual switch
- Assign static IPs to each connection
- restart Host and VMs

Hope this helps with your query,


--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.