Add an IP address in Windows System

 

Method 1: You can use the scripts provided in the system tools document to configure the commands directly.

 

Adding IP addresses consecutively.

 

Adding a block of IP addresses.

 

Method 2:

 

If the number of IP addresses to be added is small, you can also add them in the Advanced settings of IPv4 in Network Connections.

 

 

Method 3:

 

To batch add IP addresses using the command prompt:

 

Enter the command: `for /l %i in (starting_number,1,ending_number) do netsh interface ip add address "Local Connection" IP_prefix.%i subnet_mask` 

(Where starting_number and ending_number are the last digits of the IP address provided by the supplier, "Local Connection" is the network interface name, which may vary for each server and can be found in the Properties of Network Neighborhood.)

 

 

Open the command prompt by going to Start -> Run -> type "cmd" -> Enter.

 

For example, available IP addresses: 174.139.111.82-174.139.111.86 (total of 5 available IPs)

Subnet mask: 255.255.255.248

Current network interface name: Local Connection 1

 

Then enter the command: `for /l %i in (82,1,86) do netsh interface ip add address "Local Connection" 174.139.111.%i 255.255.255.248`

(You can copy the above command by right-clicking on your local computer, and then paste it directly into the command prompt window. This will help avoid typing errors and save time.)

 

Press Enter to execute the command. The IP addresses will be automatically added one by one.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What to do if you are unable to access the desktop of a Windows Server 2012 system after uninstalling certain software

一.Issue description For Windows Server 2012 operating system, when installing certain...

Change Administrator Password in Windows

There are two ways to manually change the Windows Administrator password: 一.Changing the...

Compress/Expand Disk Space in Windows System

When compressing a partitioned disk in Windows, it is important to backup your data beforehand to...

To disable automatic system updates on Windows

  1.Remotely access the Windows instance using Remote Desktop. 2. Click on the Start...