Windows 2008 : Command Line Configure Network Adapters
Use the following commands to configure IPv4 settings for a NIC.
First identify the NIC you wish to configure – obtain the Idx number of the NIC: netsh int ipv4 show int
Now set the IP address, subnet and gateway address: netsh int ipv4 set address 11 static 192.168.1.100 255.255.255.0 gateway=192.168.1.254
Now configure the primary DNS for the NIC: netsh int ipv4 set dnsserver 11 static 192.168.1.1
Finally, the secondary DNS for the NIC: netsh int ipv4 add dnsserver 11 192.168.1.2