News
Spin into 2026: join the Christmas Wheel of Fortune
SF
April 27 2023
Updated January 18 2026

Configure Multiple IP Addresses on Windows Server Using PowerShell

Networks Windows

In some scenarios, such as web hosting or application servers, it may be necessary to configure multiple IP addresses on a single network adapter in Windows Server. While adding one or two IP addresses through the graphical interface is manageable, manual configuration becomes inefficient when dealing with multiple servers and network adapters. In such cases, PowerShell provides a reliable way to automate network configuration on Windows Server 2016 and 2019.

First you need to run Powershell as an administrator. You can do this by right-clicking on the "Start" menu and selecting "Windows PowerShell (Admin)" in case of an English version of OS:

Start PowerShell as Administrator
Screenshot №1. Start PowerShell as Administrator

Next, a PowerShell window will open. Now you need to determine on which interface you need to add the required IP addresses.

Using below command, we determine the required network interface:

Get-NetAdapter
Determine network adapters for setup
Screenshot № 2. Determine network adapters for setup

In this case, one network adapter named "Ethernet", and we will use it. Let's first find out which IPs are already configured on this adapter using the command :

Get-netIpAddress -ifalias Ethernet -addressFamily Ipv4 | ft
Find out which IPs are already configured
Screenshot № 3. Find out which IPs are already configured

To add a new address, for example 192.168.10.10, you must use the following command:

New-NetIPAddress -addressfamily Ipv4 -IPAddress 192.168.10.10 -PrefixLength 24 -InterfaceAlias “Ethernet” -SkipAsSource $True

Check the result by running this command below:

running command New-IPAddress
Screenshot № 4. Result by running command New-IPAddress

As you can see, the adapter has been assigned another IPv4 address — 192.168.10.10. If you want outgoing traffic to be sent from the added IP address, you need to change parameter as below :

Set outgoing traffic to be sent from the added IP address
Screenshot № 5. Set outgoing traffic to be sent from the added IP address

If you need to add a larger number of addresses, for example 5, then you can use the script. Using an array of numbers, for example, from 11 to 16 and a foreach-object loop, add 5 more IP addresses:

11..16 | foreach-object {New-NetIpAddress -ifalias Ethernet -AddressFamily IPv4 -PrefixLength 24 -IPAddress "192.168.10.$_" -verbose}
Adding multiple IP by script
Screenshot № 6. Adding multiple IP by script

After executing the command, check with the already familiar command:

Result after executing script
Screenshot № 7. Result after executing script

In this article, we demonstrated how to use PowerShell to automate the configuration of multiple IP addresses on a single network interface in Windows Server 2016 and 2019. This approach significantly reduces manual effort and helps standardize network configuration across multiple servers.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 2
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.