How to assign Multiple IP Addresses to a Network Adapter

Add Multiple IP address to Network adapter

In many cases, the IT administrator must configure multiple IP addresses on the same network adapter. Situations such as hosting multiple SSL sites speed up the traffic exchanges, which can help avoid the gateway in case of multiple IP addresses, different public IP addresses to avoid the screens. fire or avoid being blacklisted in anti-spam filters and so on. In this post, I will share how you can assign multiple IP addresses to a network card.

Assign multiple IP addresses to a network adapter

There are many ways to do it. It includes the use of the following:

  1. Network adapter settings
  2. Netsh utility
  3. PowerShell.

1) Network adapter settings

1) Go to Settings> Network and Internet, and click Change adapter options. It will display a list of physical and virtual network adapters on the computer. Double-click the Ethernet adapter to which you want to assign multiple IP addresses. Click the Properties button.

2) In the Ethernet properties, select TCP / IPv4 or TCP / IPv6, and then click Properties. On the General tab, choose "Use the following IP address". Add an IP address, subnet, and default gateway to the adapter.

3) Then click the Advanced button to open advanced TCP / IP settings. Then click the Add button to add an IP address. You can continue to add multiple IP addresses to the adapter with this method. You can also choose to add multiple gateways or a DNS IP address to the same location.

If you type the ipconfig command at the prompt, all secondary IP addresses should be listed.

2) Use the Netsh command

If the prompt is right for you, it is much faster and easier to add multiple IP addresses.

Open the command prompt with administrator privileges and run the following command:

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

You can choose to set SkipAsSource to suit your needs with Netsh. When set to true, the IP address will not be used by the operating system for outgoing connections.

3) Use PowerShell to assign more IP addresses

Open Power Shell with administrator privileges using WIN X. Then use the NetIPAddress command to add more IP address. Make sure you understand the name of the adapter.

  • Find the list of ethernet adapter:

Get-NetIPAddress | ft IPAddress, InterfaceAlias, SkipAsSource

  • Assign an IP address to a network card. Here it is vEthernet.

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

  • Change the SkipAsSource setting

Get-NetIPAddress | Set-NetIPAddress -SkipAsSource $False

The assignment of multiple IP addresses is used in the required scenario and is not intended for general consumers. They are typically used by IP address when an application requests it.

I hope this helps you!

Leave a Reply