Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

WinXP 利用批次檔追蹤 IP 位址找出未使用位址解決 DHCP 衝突

編輯:關於 Windows

需掃描區網尋找可用 IP 時,可建立批次工具:

  1. 記事本輸入以下指令(需為單行),儲存為 IPTracker.bat:
    @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
  2. 將範例 IP 192.168.1.x 替換為實際網段。
  3. 雙擊執行,結果儲存於 IPList.txt,列出逾時(未使用)的 IP。

注意:僅適用 Windows XP Professional。可重複使用,方便排查 DHCP 問題。

Copyright © Windows教程網 All Rights Reserved