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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s