How to retain dissappearing multiple Ip Addresses in Windows 2008.

9:01 AM

How to retain disappearing multiple Ip Addresses in Windows 2008.

If you have the following issue on a Windows 2008 server, follow resolution steps below:
  • Upon each reboot, the multiple ip addresses (more than six or more), assigned to the primary interface (Teamed or not) of your server, disappear after rebooting host.
  • Only three or four Ip addresses are retained, the rest are no longer assigned to any Interface.
  • All missing IP addresses then have to be manually added into server via Command Line only as Control Panel's Networking applet will not allow you to add or delete same ip addresses.

Resolution Steps:

  • Run the following command from an elevated command line (Search for 'CMD', then do CTRL+SHIFT+ENTER'):
netsh interface ip add address name=[Your Server's Primary Interface Name] addr=10.128.122.156 255.255.255.0
  • Run the above command for all Ip addresses you want to add.
  • You can also create a quick script to add more than ten Ip addresses as below:
@echo off
netsh interface ipv4 add address "You Server's Primary Interface Name" 10.128.122.14 255.255.255.0
netsh interface ipv4 add address "You Server's Primary Interface Name" 10.128.122.16 255.255.255.0
netsh interface ipv4 add address "You Server's Primary Interface Name" 10.128.122.37 255.255.255.0
  • For sequential Ip addresses, use the "For /L" command and then add %% for the variable.e.g
For /L %%A (Starting Ip,Incrementing Ip,Ending Ip) do netsh interface ipv4 add address "Your Server's Primary Interface Name" 10.128.122.%%A 255.255.255.0
  • Finally, ensure all of these Ip addresses show up in the Registry. The Hive and Key should be located here:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces{HEXADECIMAL REPRESENTATION OF YOUR SERVER"S PRIMARY INTERFACE}
  • The Value for the key we are looking for is called 'IpAddress'. Open this Value and confirm the newly added Ip Addresses are listed in this key.
  • Reboot the server for changes to take effect.

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results