Forum Discussion

othernamen's avatar
othernamen
Copper Contributor
Jan 16, 2022

How to enable DHCP on Hyper-V switch

Hi,

 

When any VM connected to "Default Switch", they get automatic IP and can reach each other.

 

When I create manually any switch: Internal, Private, External - DHCP does not exist and I have to assign IP address as static or run a DHCP server on one of VMs...

 

Question: How to enable DHCP on Hyper-V switch

 

Thanks 8]

    • agalilov's avatar
      agalilov
      Copper Contributor

      dotlulaHere is a very small and good DHCP server solution: https://www.dhcpserver.de/cms/download/ 

      Select your vEthernet NIC during the configuration and set other dhcp-related options. Enable "Run As Service" and "Configure firewall". It works for me in Windows 11 perfectly.

      Feel free ask me by mail alexander.galilov # gmail.com

  • Hi, can you please provide more details on the environment, like, which NICs you have? Win client or server? Which version?
    It seems to me based on the high-level information you provided that the existing NIC is associated to a NIC that has a DHCP server available and the switch is just passing the DHCP request/assign. Hyper-V doesn't have a default DHCP server/service available, so your best option would be to either use static IP (as you did) or spin up a DHCP server on that virtual network for that Switch.

Resources