Many a time IT admin wants to arrange a number of IP addresses to the identical community adapter. Situations like internet hosting pace up visitors exchanges which might skip the gateway in case of a number of IP addresses, totally different public IP addresses to keep away from firewalls or to keep away from being blacklisted in SPAM filters, and so forth. In this put up, I’ll share how one can assign a number of IP addresses to a community adapter.
Assign Multiple IP Addresses to a Network Adapter
There are a number of methods to obtain this. It consists of making use of the next:
- Network adapter settings
- Netsh utility
1] Network Adapter Settings
1] Go to Settings > Network & Internet, and click on on Change adapter choices. It will reveal a checklist of bodily and digital community adapters on the pc. Double click on on the ethernet adapter to which you need to assign a number of IP addresses. Click on Properties button.
2] In the Ethernet properties, choose TCP/IPv4 or TCP/IPv6, after which click on on Properties. Under the General tab, select “Use the next IP handle.” Add an IP handle, subnet, and default gateway to the adapter.
three] Then click on on Advanced button, to open superior TCP/IP settings. Then click on on Add button to add an IP handle. You can maintain including a number of IP addresses to the adapter utilizing this technique. You also can select to add a number of gateways or DNS IP handle in the identical place.
If you sort ipconfig command on the immediate, you need to see all of the secondary IP addresses listed.
2] Using Netsh command
If you’re good with the Command Prompt, then it’s a lot sooner and simpler to add a number of IP addresses.
Open Command Prompt with admin privileges, and run the next command:
Netsh int ipv4 add handle identify="Local Area Connection" 192.168.100.100 255.255.255.zero SkipAsSource=True
You can select to set SkipAsSource relying in your want utilizing . When configured as true, the IP handle gained’t be utilized by the OS for outbound connections.
three] Use PowerShell to assign extra IP handle
Open Power Shell with admin privileges utilizing WIN X. Then use the NetIPAddress command to add extra IP handle. Make positive to determine the adapter identify.
- Find checklist of Ethernet adapter:
Get-NetIPAddress | ft IPAddress, InterfaceAlias, SkipAsSource
- Assign an IP handle to a community adapter. Here it’s vEthernet.
New-NetIPAddress –IPAddress 192.168.100.100 –PrefixLength 24 –InterfaceAlias “vEthernet” –SkipAsSource $True
- Modify the SkipAsSource parameter
Get-NetIPAddress 192.168.100.100 | Set-NetIPAddress -SkipAsSource $False
Assigning a number of IP addresses is used on the wanted state of affairs, and isn’t for normal shoppers. They are often utilized by IP handle when an utility calls for it.
Hope this helps!