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

    • Operation Warp Speed Vaccine Summit - December 8, 2020 Donald Trump:  Thank you very much. Appreciate it very much. I’m honored to welcome doctors, scientists, industry executives, and state and local leaders to our historic Operation Warp Speed Vaccine Summit. It’s been some journey for all of us. It’s been an incredible success. We’re grateful to be joined by Vice President Mike Pence, who has done an absolutely incredible job on the Coronavirus Task Force. Mike, thank you. Stand up, Mike. (Applause.) Great job. We’re here to discuss a monumental national achievement. From the instant the coronavirus invaded our shores, we raced into action to develop a safe and effective vaccine at breakneck speed. It would normally take five years, six years, seven years, or even more. In order to achieve this goal, we harnessed the full power of government, the genius of American scientists, and the might of American industry to save millions and millions of lives all over the world. We’re just days away from authorization from the FDA, and we’re pushing them hard, at which point we will immediately begin mass distribution. Before Operation Warp Speed, the typical timeframe for development and approval, as you know, could be infinity. And we were very, very happy that we were able to get things done at a level that nobody has ever seen before. The gold standard vaccine has been done in less than nine months. And now this: Meghan McCain:  If you regret taking the shot, there's hope.  Buy this "Vaccine Detox"   🤣  
    • I haven't heard that sound in a while and now I kinda miss it.
    • Do we really expect home users to have access to enterprise licenses?
    • The 2025 Complete Splunk Beginner Bundle is now 25% off by Steven Parker Today's highlighted deal comes via Neowin Deals store, where you can save 75% on The 2025 Complete Splunk Beginner Bundle. Splunk is a powerful data platform used to gather information from multiple sources and index it for efficient access. You can then use collected data to create visualizations, analytics, and a variety of automated and security-related functions. With its web-style interface, Splunk is easy to use and is utilized by many companies worldwide. What's Included: Splunk Fundamentals for Effective Management of SOC and SIEM Oak Academy 38 Lessons (3.5h) Lifetime $20.00 Value Splunk | Splunk Core Certified User Certification Prep Lab Oak Academy, 63 Lessons (6h),Lifetime, $20.00 Value Splunk | Splunk Core Certified Power User SPLK 1002 Prep Oak Academy, 53 Lessons (5.5h), Lifetime, $20.00 Value Splunk| Splunk Enterprise Certified Admin Certification Prep Oak Academy, 68 Lessons (8.5h), Lifetime, $20.00 Value Requirements Basic understanding of IT and networking concepts Familiarity with Linux and Windows operating systems A computer with internet access for hands-on practice Good to Know Length of time users can access this course: lifetime Access options: desktop or mobile Redemption deadline: redeem your code within 30 days of purchase Experience level required: all levels Certificate of Completion ONLY Updates included Closed captioning NOT available NOT downloadable for offline viewing Learn more about our Lifetime deals here! Lifetime access to this 2025 Complete Splunk Beginner Bundle normally costs $80, but this deal can be yours for just $19.99, that's a saving of $60. For full terms, specifications, and info, click the link below. Get the 2025 Complete Splunk Beginner Bundle for just $19.99 (75% off MSRP: $80) Although priced in U.S. dollars, this deal is available for digital purchase worldwide. We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
  • Recent Achievements

    • Apprentice
      Wireless wookie went up a rank
      Apprentice
    • Week One Done
      bukro earned a badge
      Week One Done
    • One Year In
      Wulle earned a badge
      One Year In
    • One Month Later
      Wulle earned a badge
      One Month Later
    • One Month Later
      Simmo3D earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      558
    2. 2
      ATLien_0
      258
    3. 3
      +FloatingFatMan
      182
    4. 4
      Michael Scrip
      125
    5. 5
      Steven P.
      104
  • Tell a friend

    Love Neowin? Tell a friend!