1、arpwatch命令功能:
linux系統下arpwatch命令用於監聽網絡上ARP的記錄。
2、補充說明:
ARP(Address Resolution Protocol)是用來解析IP與網絡裝置硬件地址的協議。arpwatch可監聽區域網絡中的ARP數據包並記錄,同時將監聽到的變化透過E-mail來報告。
3、語法:
arpwatch [-d][-f<記錄檔案>][-i<接口>][-r<記錄檔案>]
4、參數:
-d 啓動排錯模式。
-f<記錄檔案> 設定存儲ARP記錄的檔案,預設爲/var/arpwatch/arp.dat。
-i<接口> 指定監聽ARP的接口,預設的接口爲eth0。
-r<記錄檔案> 從指定的檔案中讀取ARP記錄,而不是從網絡上監聽。