How to setup IP configuration of Windows Server 2008 Server Core
In order to add your Server Core to a domain you must assign an IP and DNS server to the current IP Configuration and you do that using NETSH tool, otherwise using the answer file your setup will fail complaining about its inability to contact the source DC.
Netsh.exe is a tool an administrator can use to configure and monitor Windows-based computers at a command prompt. With the Netsh.exe tool, you can direct the context commands you enter to the appropriate helper, and the helper then carries out the command. A helper is a Dynamic Link Library (.dll) file that extends the functionality of the Netsh.exe tool by providing configuration, monitoring, and support for one or more services, utilities, or protocols. The helper may also be used to extend other helpers.
You will first check the index assigned to your NIC by running this at command line,
netsh interface ipv4 show interfaces
You can then using this syntax to assign your server an IP address. Note that my NIC index ID is 2.
netsh interface ipv4 set address name=”2″ source=static address=192.168.100.202 mask=255.255.255.0 gateway=192.168.100.1
And then you can use the following NETSH command to add your primary DNS server, in my case also the source DC.
netsh interface ipv4 add dnsserver name=”2″ address=192.168.100.201 index=1
Run Ipconfig /all to verify your configuration.