DHCP伺服器探測工具(DHCP Server Locator,dhcploc.exe)─dhcploc.exe

在公司網路裡有時會遇到有人把個人的ip-share之類有DHCP的設備接到公司網路,那時就會發生公司內部IP錯亂,但是這種情況下就要確定是否真的有DHCP的設備在同一網路上,那可以藉這個指令來做測試
DHCP伺服器探測工具(DHCP Server Locator,dhcploc.exe)─dhcploc.exe可以顯示指定的子網路範圍內,所有運作中的DHCP伺服器的名稱。此工具也可以用來偵測未認證的DHCP伺服器,而如果真的有發現的話,它將會發出「嗶」聲或是送出警示訊息。
參考資料:
How to find out how many more addresses are available in the DHCP server?
find your dhcp servers
工具下載:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38
或者在2003及\XP光碟的SUPPORT\TOOLS\SUPTOOLS.MSI
假設正確的DHCP是10.237.147.50
C:\Documents and Settings\rvw.KOEKJE>ipconfig /all
Windows IP-configuratie
...
Ethernet-adapter LAN-verbinding:
...
Standaardgateway. . . . . . . . . : 10.237.147.2
DHCP-server . . . . . . . . . . . : 10.237.147.50
DNS-servers . . . . . . . . . . . : 213.51.129.37
                                    213.51.144.37
輸入一下這台下指令主機的IP為10.237.147.101(一定要是本機的IP,其它IP不允許),按下 d 去偵測,按 q 結束
Give your current IP address as an argument to dhcploc, and press "d" (discover). Press d a few times to get a good view.

C:\WINDOWS>dhcploc 10.237.147.101
15:28:30 OFFER (IP)10.237.147.199 (S)10.237.147.50 ***Form
15:28:32 OFFER (IP)10.237.147.170 (S)10.237.147.1 ***
15:28:32 OFFER (IP)10.237.147.199 (S)10.237.147.50 ***
15:28:34 OFFER (IP)10.237.147.199 (S)10.237.147.50 ***
15:28:35 OFFER (IP)10.237.147.170 (S)10.237.147.1 ***
15:28:35 OFFER (IP)10.237.147.199 (S)10.237.147.50 ***
15:28:36 OFFER (IP)10.237.147.170 (S)10.237.147.1 ***
15:28:37 OFFER (IP)10.237.147.199 (S)10.237.147.50 ***
不斷的按 d 去偵測,結果出現除了10.237.147.50以外的10.237.147.1,那這個就是有問題的DHCP
這樣就可以判斷出在這個網路上,有一台DHCP在作怪發IP

No Money No Hone 發表在 痞客邦 PIXNET 留言(0) 人氣()