Tracking IP addresses is sometimes necessary. This can be useful if you have problems with your network or need to change some settings.
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, the user has to look 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. Here's how to do it:
Open Notepad and type 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 and close the Notepad program.
Note that in this batch file, the entire For…In…Do command consists of several commands that are linked by “&&". The command begins with "For”, ending 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)
Although some code needs to be executed, it is not difficult for laymen, and it can be achieved by following the article step by step.
-
The first step: creating a family group1, the method of creating a family group in the Win7 system i
The users of Win7 system have a large part of the browsers used by IE10, but recently the system rel
In terms of overall speed, Microsoft Windows 7 system has surpassed its predecessor Vista, with obvi
Windows 7 Build 7048 X64 only appeared soon, there is performance testing out. Probably because this
Win7 system mouse right button to add the "Open with Notepad" option
Forbidden mouse wake up Win7 method
Windows7 low-level error: DirectX11 is recognized as 10.1
Detailed use of Windows 7 recorder
How to do garbled software in Win 7 system
Win7 cool cool features let wireless hotspot carry
Win7 system partition tutorial
Novice to ask for advice with Wind7 comes with built-in FTP server to share files
How to set ip address, ip address setting method under win7
Win 7 listed cited hackers to pay attention to the cottage anti-virus software
How to improve the boot speed of Windows 7 under dual-core CPU
The perfect repair method for RAR compressed file corruption in win7 64-bit system
How to turn the Vista system into an FTP server on the LAN
Win8 IE10 Metro Edition common problem solution
How to deal with data center cloud storage disaster recovery?
How to retrieve the Win7 right lower corner keypad icon
Win8 system PC input method software compatibility test
How to cancel the dll file association method in Win7
Solve explorer.exe error in Windows
What should I do if the WinXP computer desktop icon cannot be opened?