When we solve the DHCP failure of the Windows operating system, we sometimes find out which addresses are not used in an address range. Just create a batch file and ask it to return only those unused IP addresses, then enter the results of the command into a text file.
As a network administrator, when we solve the DHCP failure of the Windows operating system, we sometimes find out which addresses in an address range are not used. I have previously introduced a method: open a command prompt window, call the ping command in the For...in...Do loop. For example, to find out which addresses are not used in the address range 192.168.1.1 to 192.168.1.100, you can use this command: For /L %f in (1,1,100) Do Ping.exe -n 2 192.168.1.% f
This command reports all IP addresses in the specified range. Whether it is used or not, users have to scroll through a large amount of content in the command line window. In fact, we can avoid these troubles, just create a batch file, ask it to return only those unused IP addresses, and then enter the results of the command into a text file.
The following describes the method:
Open Notepad and enter the following command in the window:
@Echo off date /t > IPList.txt time /t > > IPList.txt echo =========== >> IPList.txt For /L %%f in (1,1,100) Do Ping.exe -n 2 192.168.1.%%f Find "Request timed out." echo 192.168.1.%%f Timed Out >> IPList.txt echo off cls Echo Finished! @Echo on Notepad.exe IPList.txt
Save this file as IPTracker.bat, close the Notepad program.
Note that in this batch file, the entire For...In...Do command consists of several commands that are joined by "&&". The command starts with "For" and ends with "Off", and the entire command must be on one line. Of course, if the user wants to use this method, the user's own IP address needs to be used to replace the IP address in the example.
In the future, if the user wants to solve the DHCP problem, you can locate and double-click the IPTracker.bat file in the browser window, and then start an IP address tracking tool. This batch only finds those unused IP addresses, and Save the results in a Notepad file. (In this case, the saved batch file becomes an IP address tracking tool, which can be created once and used repeatedly.)
Note: This method is only available for Windows XP Professional (Pro version)
We know that in Microsofts Windows XP/Server 2003 operating system, when we browse BMP, JPEG, GIF, G
People who like to play music generally use professional software to record, so the systems own reco
Although the default sharing function is very convenient, it sometimes brings negative effects, and
The enhanced address bar in Windows Vista is very convenient to use. However, many netizens still us
Retrieve the Administrator account in XP
XP system installer prompts "msiexec.exe application error" solution
Add Account Menu Delete Extra Administrator Account
Windows XP Enhanced DOS Commands
How to increase the WinXP recorder time to 300 seconds
Turn off service security system security that is not required for Win XP
Starter allows system process management to "three swords one"
Desktop business navigation icon delete expert easy to get
WinXP hard disk fast installation of fedora16 trick
How to solve the abnormal memory? Counting several memory failures
What should I do when I access the Win7 host under the LAN and prompt for a password?
WinXP hard disk has bad sectors how to fix? How to repair bad sectors of the hard disk
Windows 7 has a capacity limitation
New Network Features for Windows XP SP2
How to open Win10 9879 member center function
The black screen of the display is easy to get. Nine great coups to help you
Microsoft launches new website Want to accelerate the adoption of Windows 10 speed
Win7 system shows how to set the desktop icon