This is a mirror of official site: http://jasper-net.blogspot.com/

Managing various network settings in Windows Server 2008 R2 Core

| Monday, June 14, 2010
Have you ever run into a problem where you are attempting to troubleshoot a network connectivity issue or configuring network settings on a Windows Server 2008 R2 Core machine?

While working on an issue, I found myself asking the question, “How do I manage network settings on a Core machine?”

Assign/Set the server with a static IP address:

netsh interface ipv4 set address name="<Network Adapter Name" source=static address=<IP Address> mask=<Subnet Mask> gateway=<Gateway Address> <Default Gateway Metric>

Example: netsh int ip set address "Local Area Connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1

Configure the server to use a DHCP assigned IP address:

netsh interface ipv4 set address name="<ID>" source=dhcp

Example: netsh int ip set address "Local Area Connection" source=dhcp

Assign/Change the DNS Server IP address:

netsh interface ipv4 add dnsserver name="<Network Adapter Name>" address==<IP address of the Primary DNS server> index=1

netsh interface ipv4 add dnsserver name=”<Network Adapter Name>” address=<IP address of the Secondary DNS server> index=2


Restart the server:


shutdown /r /t 0

Install the DNS Server role:


start /w ocsetup DNS-Server-Core-Role


Note: Using /w switch prevents the command prompt from returning until the installation completes. Without /w, there is no indication that the installation completed.


To un-install the DNS Server role, execute the following command at a command prompt: start /w ocsetup DNS-Server-Core-Role /uninstall

Read more: Microsoft Enterprise Networking Team

Posted via email from .NET Info

0 comments: