Setting the IP Address via command line – Windows Server Core
So, you’ve created a windows server core machine and it’s booted up. How do you add an IP address to the network card.
Firstly grab the network interface name
IPCONFIG or netsh interface ip show config
Jot down the name of your interface – on brand new builds this is more than likely going to be “Local Area Connection”
Then set the ip address with
netsh interface ip set address name=”Local Area Connection” static 10.96.99.5 255.255.255.0 10.96.99.1
This sets the IP address to 10.96.99.5 on a class C subnet and a gateway of .1 – STATIC not DHCP