Add Secondary IP Address To Windows Nano Server 2016

In this article, I’ll show you how to add a secondary IP address to a Windows Nano Server 2016.

By default, when setting an IP address on Windows Nano Server from the EMS Console you could only add one IP address.

If you need to add another IP address, for legacy reasons, for example, You have to use PowerShell via a remote session connection.

To get started, Connect to Windows Nano Server using PowerShell Remote.

Once connected, I’ll use the cmdlet below to get my adapters or adapter number under ifindex

Get-NetAdapter

Next, I’ll use the line below to add IP address

New-NetIPAddress –InterfaceIndex 2 –IPAddress 192.168.0.26 -PrefixLength 24 -DefaultGateway 192.168.0.1

To verify that it worked, I’ll run ipconfig

Ipconfig

To remove the IP address use the line below

Remove-NetIPAddress –IPAddress 192.168.0.26 -DefaultGateway 192.168.0.1

Posted

in

by