WoYiGuis BLoGYesterday, I saw someone in the ph4nt0m forum asking about how to add multiple IP addresses to the same network card. Although the technology is not very novel, I still have a look at it.
Add a method first:
Local Connection Properties --> TCP/IP protocol properties ---> advanced ---> Add ip in IP settings. until you add all the IP addresses in the subnet segment. only when the IP address is not assigned by DHCP can it be added.
Effect:
The result is that all other hosts in the subnet cannot be assigned an IP address. If the IP address is set to a static IP address, an IP address conflict occurs.
Manual addition is troublesome. one-click batch processing:
REM code by woyigui
REM occupies all IP addresses in the subdomain
@ Echo off
For/l % I in (2, 1, 254) do netsh interface ip add address name = "Local Connection" addr = 192.168.0.% I mask = 255.255.255.0
Modify the subnet mask and IP address according to your network environment.