It’s been a few good weeks since my last Windows Nano Server 2016 article and today I wanted to show you how I configure my Nano Server with a static IP address using PowerShell.
To set the IP Address I first connect to my Nano Server and run the cmdlet below which will return my current Adapter configuration:
Get-NetAdapter
The important value In the cmdlet Is the InterfaceIndex
Using the value above I run the cmdlet below and to configure my IP address.
New-NetIPAddress –InterfaceIndex 5 –IPAddress 192.168.1.16 -PrefixLength 24 -DefaultGateway 192.168.1.1
To view the status of the configured Interface I use the cmdlet below:
Get-NetIPInterface -InterfaceIndex 2