Comment set static ip on Hyper-V vm when host has one réseau card?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Comment set static ip on Hyper-V vm when host has one réseau card?

Message par Clippy »

I am running Hyper-V on Windows 10 and created an Ubuntu server VM.

There is a single network adapter on the VM that is connected to the Default Switch. When I reboot the VM it frequently gets a new IP address.

How can I configure the VM so that the IP always remains the same?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Comment set static ip on Hyper-V vm when host has one réseau card?

Message par Clippy »

- Assign static IP inside a Hyper-V VM.

- Bind VM's MAC address to IP on your router that runs DHCP. Probably it is a wireless physical router connected to your Windows 10 host.
Répondre

Revenir à « Hyper-V & Virtualisation »