Windows Server 2008 Core Knowledge Base!
Windows server 2008 Core ? How to set static IP address via command line
This topic will show how to set static IP 192.168.2.30 with mask 255.255.255.0 to your Windows server 2008 Core interface named ?Local Area Connection? . Also we will set DNS server IP 192.168.1.70.
To set static IP address and mask type:
netsh interface ipv4 set address name=?Local Area Connection? source=static address=192.168.2.30 mask 255.255.255.0
To set DNS server IP type:
netsh interface ipv4 add dnsserver name=?Local Area Connection? address=192.168.1.70