Recommended Posts

I'm not 100% about the set up here. That's the whole idea, I'm trying to learn how to set this up correctly, but I'm stuck.

http://i.imgur.com/AjTid9f.png

Basically, everything within the Hyper-V network can see DHCP. But a physical client cannot. It gets an APIPA address. If I gave the laptop a manual IP, there's no problem.

Hyper-v is set up with the virtual switch bound to the 2nd NIC (192.168.0.201)

DHCP is bound to 192.168.0.80

I did have a 2nd NIC in the DHCP VM (192.168.0.81) but didn't help.

My tech PC can ping everything (except the laptop)

The Hyer-V Sever NIC's are set up so: http://i.imgur.com/F4yxMj4.png (with and without gateway set on 'vSwitch')

All windows firewalls are disabled.

Any advise on what I'm doing wrong?

Link to comment
https://www.neowin.net/forum/topic/1154966-hyper-v-dhcp-issues-fixed/
Share on other sites

  On 27/05/2013 at 21:28, Shaun said:

Why have you set the dns server to be home?

On which NIC?

  On 27/05/2013 at 21:27, Riva said:

Its not that they don't listen to it but they will prefer the DHCP server in your router. Perhaps disable that or set your network adapter properties to point to your custom DHCP server.

DHCP on Router is turned off.

A single NIC is sufficient for the VM.

I have few questions before I can provide solution.

What version of Hyper-V are you using ? If not sure version of OS should be ok too.

Have you enabled DHCP guard for any of your VM's ?

How many physical NIC's do you have on the Hyper-V server ?

What is the connection type of virtual switch, External, Internal or Private ?

is the laptop Wireless or Wired? Did you isolate the 201 nic work card for only Virtual Machines.

I have my Virtual Machines running on one card, and this is isolated for only virtual machines. Go to your virtual NIC and untick the box "All Management operating system to share this network adapter" This will remove any IP address on the card and only VMs will run the though it

Make sure you have this Virtual NIC setup as a External Network.

Turn off "Allow management operating system to share this adapter" for NIC-2 & do not set VLAN tagging on the virtual switch if your physical switch is unmanaged (unless you want to isolate your virtual switch/machines from the rest of your physical network).

Restart DHCP service.

What Aergan said above should do it. The NIC that the Hyper-V uses shouldn't be shared (well it can be but I just dedicate it to Hyper-V)

The virtual switch usually doesn't have an IP as it's a dumb switch.

Can the VM get online to the gateway (router)? If not then other machines can't see it because it's not connected to the physical 8 port switch (or the other way around, the switch doesn't know about the VM so it wont route anything to it). - Nevermind since you said your Tech PC can ping the VMs.

  On 28/05/2013 at 01:04, Shaun said:

left and right image

http://i.imgur.com/F4yxMj4.png

Wait, you have the DHCP VM pointing to itself for DNS, but it doesn't have DNS I thought? I'd guess that's prolly why since the real DNS (0.200) doesn't know about it? You have to register the connection in the DNS list.

Do a ipconfig /registerDNS on the DHCP server and then the laptop will be able to find it and just change the NIC settings of the DHCP VM (0.201) to point to 192.168.0.200 in it's DNS settings.

  On 27/05/2013 at 21:45, StarkWiz said:

A single NIC is sufficient for the VM.

I have few questions before I can provide solution.

What version of Hyper-V are you using ? If not sure version of OS should be ok too.

Have you enabled DHCP guard for any of your VM's ?

How many physical NIC's do you have on the Hyper-V server ?

What is the connection type of virtual switch, External, Internal or Private ?

Hyper-V 3.0 on Server 2012.

DHCP Guard is off

2 Physical NICs on Server

VirtualSwitch set to External

  On 27/05/2013 at 23:02, Aergan said:

Turn off "Allow management operating system to share this adapter" for NIC-2 & do not set VLAN tagging on the virtual switch if your physical switch is unmanaged (unless you want to isolate your virtual switch/machines from the rest of your physical network).

Restart DHCP service.

I've now turned that off. Now I can only see the 2 nics on the physical server.

NIC1: http://i.imgur.com/vxD5j5L.png

NIC2: http://i.imgur.com/rRuIuUK.png

VSwitch Setup: http://i.imgur.com/39OhmEn.png

  On 28/05/2013 at 01:23, SHoTTa35 said:

What Aergan said above should do it. The NIC that the Hyper-V uses shouldn't be shared (well it can be but I just dedicate it to Hyper-V)

The virtual switch usually doesn't have an IP as it's a dumb switch.

Can the VM get online to the gateway (router)? If not then other machines can't see it because it's not connected to the physical 8 port switch (or the other way around, the switch doesn't know about the VM so it wont route anything to it). - Nevermind since you said your Tech PC can ping the VMs.

Wait, you have the DHCP VM pointing to itself for DNS, but it doesn't have DNS I thought? I'd guess that's prolly why since the real DNS (0.200) doesn't know about it? You have to register the connection in the DNS list.

Do a ipconfig /registerDNS on the DHCP server and then the laptop will be able to find it and just change the NIC settings of the DHCP VM (0.201) to point to 192.168.0.200 in it's DNS settings.

The DHCP VM NIC is pointing back to 0.200 for DNS

http://i.imgur.com/2rxrUJT.png

I think your virtual switch configuration is broken.

I would like you to delete all existing virtual switches in Hyper-V.

You might need to change the NIC status on vm's to not connected until you create new virtual switch.

Did you tick Hyper-V Extensible virtual switch option manually on the NIC's ? If so, please untick that once you have deleted all the virtual switches.

Create a new virtual switch with connection type as "External Network" and bind it to Physical NIC 2 on the server.

Also, turn off "Allow management operating system to share this adapter". Turning off is not necessary though, the DHCP server VM should be able to assign IP to this NIC on your host automatically as well.

Then assign the new virtual switch to the vm's.

Make sure that DHCP scope is assigned on the interface correctly.

Right! Got it fixed!

I've no idea what I had set before, but I can only assume I had configured DNS on my Switch to something unintelligible.

I reset the switch to factory defaults (then had to use fing on my mobile to find out what new IP it had after rebooting) and DHCP was working (and the switch had the 1st IP in the DHCP Scope)

And then all other clients picked up IP's

I am one happy chappy

  • 4 months later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Here is a list of Samsung Galaxy watches that won't be supported after September 2025 by Sayan Sen Samsung Gear S3 Samsung has confirmed that support for its Tizen-powered smartwatches will officially end in September 2025. The decision marks the final phase of a gradual wind-down process that began last year and reflects the company’s strategic shift toward its Wear OS–powered devices from its own in-house Tizen. If you recall, the South Korean giant began moving away from it back in 2021. The phase-out started on September 30, 2024, when the Galaxy Store stopped offering paid content for Tizen devices. This was followed by another key deadline on May 31, 2025, when new downloads of free Tizen content were disabled. Finally, by the end of September 2025 later this year, users will no longer be able to re-download any previously purchased content via the Galaxy Store. At the time, Samsung had shared the following timeline in an official "Tizen Watch Service Termination Schedule" notice as it wrote: While Samsung has not specified the list of affected wearable devices that will no longer receive Tizen support after September 2025, the following products are likely to be getting the axe: Galaxy Gear Series Samsung Galaxy Gear (Original model) Samsung Galaxy Gear 2 Samsung Galaxy Gear S2 Samsung Gear S3 Classic Samsung Gear S3 Frontier Galaxy Watch Series (Tizen-based) Samsung Galaxy Watch (First Generation / Galaxy Watch 1) Samsung Galaxy Watch Active Samsung Galaxy Watch Active2 Samsung Galaxy Watch 3 Thus, devices launched after the Galaxy Watch3, including the Galaxy Watch4 series and subsequent models, are built on Wear OS and remain unaffected by this transition. On the flip side, Samsung is not planning to switch to Google TV for its TVs, as these still come preloaded with its own Tizen OS, and even offer seven years of support.
    • If I'm not mistaken, doesn't almost al servers run apache, wich is linux
    • I use LibreOffice for many years now; not much but it suites all my needs. Although it's free, never forget to donate every now and then; It'll be appreciated
    • Crucial T500 2TB Gen4 NVMe M.2 2280 SSD is selling at its lowest price in over a year by Sayan Sen If you are in the market, either online or offline, shopping for NVMe SSDs, then there are several good options to choose from. Western Digital, for example, is offering its 4TB SN8100 (PCIe 5.0) and SN7100 (PCIe 4.0) drives for the lowest prices. Team Group also has its 4TB G50 for just $200 but only for a few more hours. If you need a 2TB Gen4 option then check out Crucial's T500 that is available for just $125, the lowest it has been in over a year (purchase links down below). Both the heatsink and non-heatsink variants are discounted so you can pick and choose. The T500 promises speeds of 7400 MB/s and 7000 MB/s in terms of sequential reads and sequential writes. In terms of random throughputs, the T500 claims reads of 1180K IOPS (input output operations per second) and writes of 1440K IOPS. These high random speeds are thanks to the Phison PS5025-E25 controller that packs 2GB LPDDR4-4266 DRAM cache. Thus the drive will not need to access system memory for caching and other purposes. The Crucial B500 features Micron B58R FortisFlash 232-layer TLC (triple level cell) NAND flash memory with an endurance rating of 1200 TBW (terabytes written). Get the SSD at the link below: Crucial T500 2TB without Heatsink, Laptop & Desktop Compatible + 1mo Adobe CC All Apps - CT2000T500SSD8: $124.99 (Shipped and Sold by Amazon US) Crucial T500 2TB with Heatsink, PlayStation 5 Compatible + 1mo Adobe CC All Apps- CT2000T500SSD5: $132.99 (Shipped and Sold by Amazon US) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • I'm waiting for windows 12. They will probably release it next year. By that point they might have moved all of control panel over to the settings app which would be nice.
  • Recent Achievements

    • One Month Later
      jezzzy earned a badge
      One Month Later
    • First Post
      CSpera earned a badge
      First Post
    • One Month Later
      MIR JOHNNY BLAZE earned a badge
      One Month Later
    • Apprentice
      Wireless wookie went up a rank
      Apprentice
    • Week One Done
      bukro earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      628
    2. 2
      ATLien_0
      282
    3. 3
      +FloatingFatMan
      180
    4. 4
      Michael Scrip
      150
    5. 5
      Steven P.
      118
  • Tell a friend

    Love Neowin? Tell a friend!