Share via

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

Mohit 101 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 for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    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 81,395 Reputation points MVP Volunteer Moderator
    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.

Your answer

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