Removes all IP addresses in the LAN.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.