isolate VM network from work network and in the same time gain internet access to VM using Hyper-V

SysAdmin 151 Reputation points
2024-02-14T09:20:38.19+00:00

Hi

I want to isolate my VM network from my work network and in the same time gain internet access to VM, I followed the video tutorial and it did not work, the link: https://www.youtube.com/watch?v=30X0oOwCruE

in the video, he is using DHCP to configure IPs of his VMs, in my situation I did not enable Windows server DHCP, I put the IPs manually.

Details as follow:

Windows Server (DC)

  • Internal Switch:
    • IP: 10.10.10.1
    • SM: 255.255.255.0
    • DG: 10.10.10.20
    • DNS: 10.10.10.1

Windows Server (Router)

  • Internal Switch:
    • IP: 10.10.10.20
    • SM :255.255.255.0
    • DG:NON
    • DNS10.10.10.1 (DC IP)
  • External Switch:
    • The IPs is from the work DHCP

I have enabled the NAT on the router, I selected NAT routing then selected the External Switch, and the internet is working on Router Server but unfortunately, the DC did not receive internet.

I saw some other videos where they assign Google DNS to the server/client and yet still did not work, however, I really want to do it without need to assign google DNS as I want full isolate as shown in tutorial video.

Kind Regards

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,754 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,088 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,714 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
756 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
435 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Timmy Malmgren 961 Reputation points
    2024-02-18T23:20:30.24+00:00

    Hello!

    I see you pointing both your internal network interfaces to the DC as a DNS server. Have you configured the DNS for the domain controller? He does not mention it in the video to my knowledge.

    Another thing you could test is, can you ping 8.8.8.8 from the DC? If so then its definitely DNS related.

    The setup should work as mention in the video, but make sure you configure your DC:s DNS if you have not done so :)

    Hope this is helpful Best Regards, Timmy Malmgren

    ---If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others to find what they are looking for faster!


  2. SysAdmin 151 Reputation points
    2024-02-19T08:34:29.6333333+00:00

    Hi Timmy

    Thank yo for your support.

    in the video at 11:48 in the Router server he used DC IP in the DNS (in the video 11:48) as in the picture below:User's image

    The configuration he did in the DC: User's image

    I will reconfigure everything again, I will update you.


  3. Jing Zhou 7,095 Reputation points Microsoft Vendor
    2024-03-14T02:28:36.1566667+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    I can understand that you want to seperate this VM from your work environment. However, in this business scenario, you will need a specific DNS Server to resolve the DNS query from DC. If you doesn't want to use google DNS Server 8.8.8.8, you can bring in another private DNS server to answer DNS query. Otherwise, it will not be able to get a proper connection to the internet.

     

    You can try to configure a DNS Server for DC and compare the nslookup outcome before/after the change to doulbe verify this point.

     

    To help other customers who may be facing the same issue, please don't forget to vote if the reply is helpful.

    Hope this answer can help you well.

     

    Best regards,

    Jill Zhou


  4. Jing Zhou 7,095 Reputation points Microsoft Vendor
    2024-03-14T02:59:05.8633333+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    I can understand that you want to seperate this VM from your work environment. However, in this business scenario, you will need a specific DNS Server to resolve the DNS query from DC. If you doesn't want to use google DNS Server 8.8.8.8, you can bring in another private DNS server to answer DNS query. Otherwise, it will not be able to get a proper connection to the internet.

     

    You can try to configure a DNS Server for DC and compare the nslookup outcome before/after the change to doulbe verify this point.

     

    To help other customers who may be facing the same issue, please don't forget to vote if the reply is helpful.

    Hope this answer can help you well.

     

    Best regards,

    Jill Zhou

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.