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

CredSSP encryption oracle remediation error in Windows Remote Desktop

Issue description: When attempting to connect to a Windows instance using Remote Desktop, "An...

How to create a partition in Windows system

1.Right-click on the Start menu in the Windows Server desktop and select "Disk Management."...

Change the remote port number in Windows

The remote port number for Windows systems is between 1024 and 65535, and you can choose any...

Change Administrator Password in Windows

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