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

    • LibreOffice narrows gap with Microsoft Office in 25.8 Beta 1 by David Uzondu The Document Foundation has released LibreOffice 25.8 Beta 1 for public testing on Linux, macOS, and Windows. This is the second pre-release for the 25.8 cycle and the foundation says that the final, stable version of LibreOffice 25.8 is expected to land at the end of August 2025. Starting off with Writer, LibreOffice's Word, the developers have finally addressed some long-standing annoyances, including a new command to easily insert a paragraph break right before a table. This beta also introduces a useful privacy feature in its Auto-Redact tool, letting you strip all images from a document with a single option. To use it, go to Tools and select the Auto-Redact option: The application has improved its ability to handle different languages for punctuation, preventing mix-ups in multilingual documents. Other notable improvements have also been made. A new hyphenation rule lets you choose to prevent a word from splitting at the end of a page, moving the whole line to the next page instead. Microsoft Word has had this feature for years now. The Navigator now displays a handy tooltip with word and character counts for headings and their sub-outlines. Scrolling behavior when selecting text has been improved, making it less erratic. A new command with a keyboard shortcut was added for converting fields into plain text. Calc gets a lot of new functions that bring it closer to its competitors like Excel, including TEXTSPLIT, VSTACK, and WRAPROWS. Impress now properly supports embedded fonts in PPTX files, which should reduce headaches when sharing presentations with PowerPoint users. Alongside these additions, the project is also cleaning house; support for Windows 7, 8, and 8.1 has been completely dropped. There are also smaller UI tweaks across the suite, like allowing a single click to enter rotation mode for objects in Writer and Calc. macOS users get better integration, with proper support for native full screen mode and new window management features from the Sequoia update. In terms of performance, the team has optimized everything from loading huge DOC files and XLSX spreadsheets with tons of conditional formatting to simply switching between sheets in Calc. These improvements should be noticeable, especially when working with complex documents. A new application-wide "Viewer mode" has also been implemented, which opens all files in a read-only state for quick, safe viewing. On a related note, The Document Foundation has joined efforts by the likes of KDE to encourage Windows 10 users to switch to Linux. Also, you might have heard that Denmark, in a bid to lessen its reliance on Microsoft, has decided to make a full switch to LibreOffice, with plans to begin phasing out Office 365 in certain ministries as early as next month. If you're interested in this release, you can read the full release notes and download the binaries for your platform: Windows, macOS (Intel | Apple Silicon), or Linux (DEB | RPM). You can also get the latest stable version from our software stories page.
    • Until it can be used 100% offline (ie: PST file support or equiv) not even considering it. I'll jump to Thunderbird first which has gotten a LOT better since the last time I looked at it.
  • Recent Achievements

    • Explorer
      Case_f went up a rank
      Explorer
    • Conversation Starter
      Jamie Smith earned a badge
      Conversation Starter
    • First Post
      NeoToad777 earned a badge
      First Post
    • Week One Done
      JoeV earned a badge
      Week One Done
    • One Month Later
      VAT Services in UAE earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      545
    2. 2
      ATLien_0
      227
    3. 3
      +FloatingFatMan
      159
    4. 4
      Michael Scrip
      113
    5. 5
      +Edouard
      105
  • Tell a friend

    Love Neowin? Tell a friend!