Setting the IP Address via command line – Windows Server Core

 In Server Core

Hi

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.

Use NETSH

Firstly grab the network interface name

either by

CODE

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

CODE

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

Enjoy

Comments

Leave a Comment

Contact Us

Call us on: 01332 890460 or Send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt