Windows 2016 server not getting internet connection after configuring AD DS and assigning static ip

Mohit 61 Reputation points
2024-03-10T00:55:32.79+00:00

Hi there,

I hope you are doing good.
I have deployed 2 windows 2016 servers and installed AD DS services on them. I created domain on DC-1 and assigned a static ip and it worked. I used DC-2 to connect to existing domain and connected it to DC-1. All this setup is done in hyper-v.

However both of my DC's are not getting internet connection. Can you advise what to do next in order to get internet connectivity?

DC-1:DC1

DC-2:
DC-2

Thanks.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,160 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,887 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,545 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 18,706 Reputation points Microsoft Vendor
    2024-03-11T02:35:44.25+00:00

    Hello Mohit,

    Thank you for posting in Q&A forum.

    Area the two Domain Controllers also DNS servers (I mean you also installed DNS role on the two servers)?

    Please check the type of virtual switch of your Hyper-V.

    Hyper-V has three types of virtual switches -- external, internal, and private. Create an external switch to share your computer's network with the virtual machines running on it.

    This exercise walks through creating an external virtual switch. Once completed, your Hyper-V host will have a virtual switch that can connect virtual machines to the internet through your computer's network connection.
    Screenshot of the Virtual Switch Properties section of the Virtual Switch Manager pane.

    If the NIC of the hyper-V Switch is internal or private, and the domain controller (also a DNS server) built in hyper-V cannot connect to the Internet no matter how you set it.

    Only the virtual switch NIC of hyper is external, and then you set up the network on the domain controller (also a DNS server) built in hyper, and this domain controller can connect to the Internet.

    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marcin Policht 10,845 Reputation points MVP
    2024-03-10T04:21:48.25+00:00

    You need to configure DNS servers hosted on your domain controller to use either a forwarder or internet root servers, as described in

    https://www.readandexecute.com/how-to/server-2016/dns/configure-dns-forwarders-windows-server-2016/


    hth

    Marcin

    1 person found this answer helpful.