In some circumstances an administrator wants to configure a number of IP addresses one a single community interface (NIC) in Windows. An instance of such conditions will be the necessity to run with distinctive IP addresses and SSL certificates (e. g., ) on one IIS or Apache server, making ready to change of IP addressing in a subnet, binding the functions to totally different IP addresses, and so forth.
Let’s think about how to add a further static IP deal with on a community interface in Windows 10 (in the identical method you’ll be able to add a further IP deal with to a NIC on Windows Server). First of all, guarantee that just one IP deal with is assigned to your Ethernet community adapter. To do it, run this command:
As you’ll be able to see, one IP deal with (192.168.1.90) is assigned to the native community connection (it’s referred to as Ethernetzero in my case).
You can add the second static IP deal with in a variety of methods.
How to Add an Additional IP Address by way of Windows GUI?
You can add the second IP deal with from the Windows GUI.
- Open the Control Panel –> Network and Internet –> Network and Sharing Center -> Change adapter settings (or simply run the
- Open the properties of your community interface;
- Select TCP/IP v4 within the listing of protocols and click on Properties;
- Click the Advanced button after which press Add within the IP Addresses part;
- Specify a further IP deal with, IP subnet masks and click on Add;
- Save the modifications by clicking OK a number of instances.
ipconfig command, guarantee that the second IP deal with has appeared on this interface.
Check the supply of the second IP deal with from different computer systems in the identical community utilizing the
ping command. It ought to reply.
The major downside of including the second IP deal with utilizing this technique is that the
SkipAsSupply (SkipAsSupply=False) flag isn’t enabled for it. If SkipAsSupply is enabled (True), the IP deal with gained’t be utilized by the system for outbound connections, besides whether it is explicitly utilized by a sure utility. Also, if the flag is enabled, the second IP deal with isn’t registered within the DNS (even when the dynamic registration is enabled). In common, you’ll be able to set the primary IP deal with utilizing SkipAsSupply parameter.
How to Assign the Second IP Address Using Netsh Command?
You can assign a further IP deal with from the command immediate utilizing the
Netsh utility. This command additionally permits you to set the SkipAsSupply for an IP deal with.
Open the command immediate as administrator and run this command:
Netsh int ipv4 add deal with identify="Local Area Connection" 192.168.1.92 255.255.255.zero SkipAsSupply=True
Adding Secondary IP Address Using PowerShell
You may also add a second IP alias to a community interface utilizing the NetIPAddress PowerShell cmdlets (this cmdlet appeared in PowerShell model in Windows 2012 / Windows eight.)
Display the listing of obtainable interfaces:
Get-NetIPAddress | ft IPAddress, InterfaceAlias, SkipAsSupply
IPAddress InterfaceAlias SkipAsSupply<
--------- -------------- ------------
172.23.53.241 vEthernet False
192.168.1.90 Ethernetzero False
127.zero.zero.1 Loopback Pseudo-Interface 1 False
To add a further IP deal with for the Ethernetzero NIC, run this command:
New-NetIPAddress –IPAddress 192.168.1.92 –PrefixLength 24 –InterfaceAlias “Ethernetzero” –SkipAsSupply $True
IPAddress : 192.168.1.92
InterfaceIndex : 11
InterfaceAlias : Ethernetzero
AddressHousehold : IPv4
Type : Unicast
PrefixLength : 24
PrefixOrigin : Manual
SuffixOrigin : Manual
AddressState : Tentative
ValidLifetime : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSupply : True
PolicyStore : ActiveStore
To modify SkipAsSupply parameter and permit the outgoing site visitors from this IP deal with of the community interface, use this command:
Get-NetIPAddress 192.168.1.92 | Set-NetIPAddress -SkipAsSupply $False