You are on page 1of 10

Home About

Windows Server  Active Directory  Windows Clients  Virtualization  Pow

 Windows OS Hub / Windows 10 / Assign Multiple IP Addresses (Aliases) to a Single NIC

April 12, 2019 PowerShell Windows 10 Windows Server 2012 R2 Windows Server 2016

Assign Multiple IP Addresses (Aliases) to a Single NIC

Connect to the World


Start connecting and sharing with peop
you know. See the latest from your
community.

Facebook® Visit Sit

In some cases an administrator needs to configure multiple IP addresses one a single network interface (NIC) in Win
example of such situations can be the need to run multiple sites with unique IP addresses and SSL certificates (e. g.
certificates from Let’s Encrypt) on one IIS or Apache server, preparing to change of IP addressing in a subnet, bindin
applications to different IP addresses, etc.

ПЕРФОРИРАН ПАНЕЛ БЯ
МЕТАЛЕН РАФТ БЯЛ, 2 … МЕТАЛЕН СТЕЛАЖ KTN V… КОМПЛЕКТ ЛЯВА И ДЯСНА К…
ELEM…

89,99… 65,99… 8,99… 39,99…

Let’s consider how to add an additional static IP address on a network interface in Windows 10 (in the same way yo
an additional IP address to a NIC on Windows Server). First of all, make sure that only one IP address is assigned to
Ethernet network adapter. To do it, run this command:

ipconfig


бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
Виж повече
0889 000 333
от 1 150€/m2

As you can see, one IP address (192.168.1.90) is assigned to the local network connection (it is called Ethernet0 in m

You can add the second static IP address in a number of ways.

бул. "Цар Борис III" № 126

0889 000 333

от 1 150€/m2
Виж повече

Contents:

How to Add an Additional IP Address via Windows GUI?

SkipAsSource Flag

How to Assign the Second IP Address Using Netsh Command?

Adding Secondary IP Address Using PowerShell

How to Add an Additional IP Address via Windows GUI?


You can add the second IP address from the Windows GUI.


1. Open the Control Panel –> Network and Internet –> Network and Sharing Center -> Change adapter setting
бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
run the ncpa.cpl command); Виж повече
0889 000 333
2. Open the properties of your network interface; от 1 150€/m2
3. Select TCP/IP v4 in the list of protocols and click Properties;

4. Click the Advanced button and then press Add in the IP Addresses section;

5. Specify an additional IP address, IP subnet mask and click Add;


6. Save the changes by clicking OK several times.
бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
Виж повече
0889 000 333
от 1 150€/m2

Using the ipconfig command, make sure that the second IP address has appeared on this interface.

Check the availability of the second IP address from other computers in the same network using the ping command
should respond.

SkipAsSource Flag
The main drawback of adding the second IP address using this method is that the SkipAsSource (SkipAsSource=Fal
not enabled for it. If SkipAsSource is enabled (True), the IP address won’t be used by the system for outbound conn
except if it is explicitly used by a certain application. Also, if the flag is enabled, the second IP address is not register
DNS (even when the dynamic registration is enabled). In general, you can set the main IP address using SkipAsSour
parameter.

бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
Виж повече
0889 000 333
от 1 150€/m2

How to Assign the Second IP Address Using Netsh Command?


You can assign an additional IP address from the command prompt using the Netsh utility. This command also allow
set the SkipAsSource for an IP address.

Open the command prompt as administrator and run this command:

Netsh int ipv4 add address name="Local Area Connection" 192.168.1.92 255.255.255.0 SkipAsSource=True

Adding Secondary IP Address Using PowerShell


You can also add a second IP alias to a network interface using the NetIPAddress PowerShell cmdlets (this cmdlet
in PowerShell version in Windows 2012 / Windows 8.)

Display the list of available interfaces:

Get-NetIPAddress | ft IPAddress, InterfaceAlias, SkipAsSource

IPAddress InterfaceAlias SkipAsSource<

--------- -------------- ------------

172.23.53.241 vEthernet False


192.168.1.90 Ethernet0 False
бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
127.0.0.1 Loopback Pseudo-Interface 1 False
Виж повече
0889 000 333
от 1 150€/m2
To add an additional IP address for the Ethernet0 NIC, run this command:

New-NetIPAddress –IPAddress 192.168.1.92 –PrefixLength 24 –InterfaceAlias “Ethernet0” –SkipAsSource $True

IPAddress : 192.168.1.92

InterfaceIndex : 11

InterfaceAlias : Ethernet0

AddressFamily : IPv4

Type : Unicast

PrefixLength : 24

PrefixOrigin : Manual

SuffixOrigin : Manual

AddressState : Tentative

ValidLifetime : Infinite ([TimeSpan]::MaxValue)

PreferredLifetime : Infinite ([TimeSpan]::MaxValue)

SkipAsSource : True

PolicyStore : ActiveStore

To modify SkipAsSource parameter and allow the outgoing traffic from this IP address of the network interface, use t
command:

Get-NetIPAddress 192.168.1.92 | Set-NetIPAddress -SkipAsSource $False


бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
Виж повече
0889 000 333
от 1 150€/m2

Бъдете информирани с Facebook


Намерете нови начини да се свързвате, информирате и вдъхновявате във Facebook.

Ad Facebook® Посетете

 6 comments 0    

previous post ne
Configuring an FTP Server with User Isolation on Restricting Group Policy with WMI F
Windows Server 2016 / 2012 R2

бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
RELATED READING Виж повече
0889 000 333
от 1 150€/m2

How to Check Who Restarted (Shutdown) How to Find Duplicate Files Using Install and Configure PostgreSQ
Windows Server? PowerShell? Windows

October 12, 2022 October 11, 2022 October 11, 2022

Orijinal Lisans Свържете се със All your IT in one Вдъхнете жи


Windows 10 света dashboard на всичко

Ad Sağlam Lisans Ad Facebook® Ad ManageEngine UEM Ad ASUS

Затворен UK Expat VPN - GAZelle NN с Explore Your P


жилищен Works On All Промо Цени Identities
комплекс Devices
Ad Камбаните Резиденшъл Парк Ad ukexpatvpn.com Ad GAZ Bulgaria Ad AstroMary

6 COMMENTS

CLAIRE CHOI
 February 14, 2020 - 6:12 am


Hey, It’s really good contents.
бул. "Цар Борис III" № 126
Windows Server  Active Directory  Windows Clients  Virtualization  Pow
I have a question about this. Виж повече
0889 000Do the multiple IPs in single NIC have a priority?
333
от 1 150€/m2
If the server want to connect to another server using the NIC, which IP would be used?
I manage some server like this condition, they operate differently, so I confused.
Do you know anything about this?

ADMIN

 February 14, 2020 - 10:44 am

You can set the SkipAsSource=False flag for all non-primary IP addresses.

BINESH

 September 15, 2021 - 4:15 am

what should we give in DNS server ip & alternate DNS ip?

MAX

 September 15, 2021 - 4:49 am

You will always use the DNS address of the primary IP address when resolving.

HARALD BILKE

 October 6, 2021 - 3:52 pm

Interesting stuff. I’d like to utilise it for the following scenario:


NEW AD-DC, new name okay but: masses of devices w/hard code DNS IP.
Use the 2nd IP for the DNS service.

MAURICIO P

 September 20, 2022 - 10:27 pm

Were you able to set it in a DC? Did you have replication issues? I need to do the same as I h
network devices pointing to an IP as DNS

LEAVE A COMMENT


бул. "Цар
Your Борис III" № 126
Comment Windows Server  Active Directory  Windows Clients  Virtualization  Pow
Виж повече
0889 000 333
от 1 150€/m2

Name* Email* Website

NOTIFY ME OF FOLLOWUP COMMENTS VIA E-MAIL. YOU CAN ALSO SUBSCRIBE WITHOUT COMMENTING.

POST COMMENT

 FACEBOOK  TWITTER 

How

How

How

Man

Dep
@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins
Man
 How
BACK TO TOP

You might also like