Question about Hyper-V Networking


Recommended Posts

I want to run some VMs on Hyper-V with public IPs, and also want them on a local domain. I have the networking configured so that IP routing is enabled on the host, the internal adapter on the host has a static IP and subnet but no gateway. The adapter within the VMs are given different static IPs and the gateway is the IP of the host internal adapter. All works fine. I setup a second internal adapter and give each VM a 192.x.x.x address on the second adapter and set the DNS to the 192. address of the domain controller. They communicate fine and join the domain. After this they then lose connectivity with the outside world, could this be something to do with being on a domain/having different DNS addresses on each adapter within the VM?

Link to comment
https://www.neowin.net/forum/topic/1061498-question-about-hyper-v-networking/
Share on other sites

Make sure the Hyper-V virtual network is set to external. Even when it's set to external it can still communicate via the host through it's proper IP address (the host). If you've got a DHCP server set up then let that assign the addresses then force those addresses to only be assigned to the VM's. If you configure it to internal only then it can only communicate within the actual host itself and not outside.

This is a hosted server with only 1 NIC and 1 main IP address, with an additional /28 IP range routed to the primary IP. The only way of getting an internet connection to the VMs is creating an internal only adapter, giving the Hyper-V adapter on the host the first usable IP address and subnet leaving the gateway and DNS blank. Then setting each VM to the next IP in the range and using the IP assigned on the host adapter as the gateway, and enabling the IP Router option in the host machine registry. It works exactly like having 2 real NICs, so it's not the way the Hyper-V networking is configured.

What I want to do is run a domain on a private adapter which has no internet connectivity on a 172.16.100.x range using the domain controller's DNS, and then give each VM a static public IP with external DNS servers (i.e. 8.8.8.8). The only problem I'm encountering is that all the internet traffic goes down the private (domain) adapter and not out through the one providing internet access. Here is an example of what I mean:

289llcy.png

These are what the 2 adapters look like (This has been edited so it doesn't show the actual public IP), the one on the left is the internet connection and one on the right is the domain network. Basically, all the internet traffic is going down the domain adapter. Is this due to having internal and external DNS servers specified, even though they're separate networks and is there any way around this? Do I need to do anything with DNS forwarders on the domain controller?

Any help much appreciated. :)

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

    • No registered users viewing this page.
  • Posts

    • they will use your data anyways, this way you at least get to take advantage of it, might as well use it
    • I think its a great thing, whoever messes with my msgs is going to be real bored. Even those who dont trust meta, like myself, if the gains translate into an improved communication, easiness, everyone will use it. The alternative is not use Meta Whatsapp since they will AI your msgs an resume it anyways
    • Write-Host “Initiate porno mode!” -ForegroundColor Red Read-Host “Press the any key to continue” Save as “PornoMode.ps1
    • The so called tri-fold phone is not a phone just like today's so called smartphones are not phones. They are computing camera devices with the ability to make and receive phone calls. For many the phone app is among the least used apps on these so called smartphones.
    • Backpack Hero and Figment are free to claim on the Epic Games Store by Pulasthi Ariyasinghe The Epic Games Store has just refreshed its weekly giveaways promotion, and there are two games up for grabs this time. Replacing the Sable freebie from last week, Backpack Hero and Figment have now landed for all PC gamers to claim. As always, you have seven days to add the latest indie game permanently to your Epic Games Store library. From the double giveaway, Backpack Hero comes in from indie developer Jaspel, offering a unique inventory management roguelike experience. Aside from collecting items to maximize the potential of a run, like with other roguelikes, here, your placement of the item in the backpack also matters. Each run offers randomly generated dungeons, enemies, and loot to grab. Next, Figment lands from Bedtime Digital Games. This isometric perspective action adventure game takes place in a surreal landscape with hand-drawn artwork, and everything is taking place inside a mind. You take the role of Dusty, the former voice of courage in the mind. The musical adventure involves trying to return Dusty to his old self while also helping the mind beat back its nightmares and restoring its original purpose. The Figment and Backpack Hero giveaways on the Epic Games Store are now active, and they will last until July 10. When not on sale, both games come in at $19.99 to purchase, but PC gamers can add the duo to their library for no cost during the seven-day timeframe. When the giveaways refresh next week, Epic Games plans on giving away two more games: the next musical adventure, Figment 2: Creed Valley, as well as the classic arcade-inspired shoot’em up Sky Racket.
  • Recent Achievements

    • Week One Done
      Devesh Beri earned a badge
      Week One Done
    • Week One Done
      956400 earned a badge
      Week One Done
    • First Post
      loose_observer earned a badge
      First Post
    • Week One Done
      BeeJay_Balu earned a badge
      Week One Done
    • Week One Done
      filminutz earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      454
    2. 2
      ATLien_0
      158
    3. 3
      +FloatingFatMan
      153
    4. 4
      Nick H.
      65
    5. 5
      +thexfile
      62
  • Tell a friend

    Love Neowin? Tell a friend!