Assigning Multiple IPs to Single NIC

Last updated:

WINDOWSPOWERSHELL

Issue:

When adding multiple IPs to a single NIC, DNS entry keep getting updated with the IPs which are not primary.

Fix:

To list IPs

Get-NetIPAddress -AddressFamily IPv4 | ft IPAddress, InterfaceAlias, SkipAsSource

Add new IP

New-NetIPAddress –IPAddress "10.45.38.22" –PrefixLength 22 –InterfaceAlias “Prod” –SkipAsSource $True

Set skip as source property

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

references: Online reference