Set IP address on a Windows Server core installation

1. At a command prompt, type:

netsh interface ipv4 show interfaces

2. Verify that there is an interface list. At a command prompt, type

C:\netsh interface ipv4 set address name=<ID from interface list> source=static
address=<preferred IP address>
gateway=<gateway address> mask=<mask address>

3. Verify by typing ipconfig /all at a command prompt and checking that DHCP enabled is set to No.
Example command,

netsh interface ipv4 set address name=12 source=static address=10.0.0.11
gateway=10.0.0.10 mask=255.255.255.0

This also works on a Windows 8 install.
Thanks,
Malcolm.

Leave a Reply

Your email address will not be published. Required fields are marked *