Alternative skills: teach you how to get rid of all IP addresses in the LAN

Source: Internet
Author: User
Welcome to the network technology community forum, and interact with 2 million technical staff. Yesterday, I was asked 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 in another way. Add Local Connection Properties-TCPIP protocol properties-advanced-add IP addresses in IP settings until you add all IP addresses in the subnet segment

Welcome to the network technology community forum and interact with 2 million technical staff> yesterday, I was asked about how to add multiple IP addresses to the same network card. Although the technology is not novel, however, another way of thinking is to look at it. Add Local Connection Properties-TCP/IP protocol properties-advanced-add IP addresses in IP settings until you add all IP addresses in the subnet segment

Welcome to the network technology community forum and interact with 2 million technical staff> enter

Yesterday, I was asked 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 in another way. Add a method first:

Local Connection Properties --> TCP/IP protocol properties ---> advanced ---> Add IP addresses in IP settings

You can add all the IP addresses in the subnet segment only if the IP address is not allocated by DHCP.

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, 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.

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.