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.