I am installing Server 2019 Evaluation Version and want to promote it to Domain Controller.
As my understanding of networking is very basic, I am struggling to assign a Static IP Address to my server.
When I go to IPv4 setting and assign any IP address like 192.168.2.100 and save the settings, my internet starts showing No Internet but when I click assign IP address automatically, Internet starts working fine.
I know I am missing something or doing something wrong but someone please guide me on how to do it correctly.
Has it been promoted? A domain controller should have own static ip address listed for DNS (192.168.2.100 in your example) and no others such as router or public DNS. Domain DNS is so members can find and logon to domain. Internet queries would be passed on to the 13 default root hint servers in a top level down fashion or optionally to forwarders. A single domain controller will take 5 to 10 minutes for all services to start up and become available so be patient.
In order to be sure about your set up. Did you configure a NAT router features on your server?
You'll need to have both internal and external switches for networking. The internal switch you'll use for the static (internal IP) and the external you'll use which DHCP address for internet exploring.
Let me know how did you configure your network to be sure I answered your question.