Linux 指令篇:網(wǎng)絡(luò)通訊--arpwatch
arpwatch(ARP watcher)
功能說(shuō)明:監(jiān)聽(tīng)網(wǎng)絡(luò)上ARP的記錄。
語(yǔ) 法:arpwatch [-d][-f<記錄文件>][-i<接口>][-r<記錄文件>]
補(bǔ)充說(shuō)明:ARP(Address Resolution Protocol)是用來(lái)解析IP與網(wǎng)絡(luò)裝置硬件地址的協(xié)議。arpwatch可監(jiān)聽(tīng)區(qū)域網(wǎng)絡(luò)中的ARP數(shù)據(jù)包并記錄,同時(shí)將監(jiān)聽(tīng)到的變化通過(guò)E-mail來(lái)報(bào)告。
參 數(shù):
-d 啟動(dòng)排錯(cuò)模式。
-f<記錄文件> 設(shè)置存儲(chǔ)ARP記錄的文件,預(yù)設(shè)為/var/arpwatch/arp.dat。
-i<接口> 指定監(jiān)聽(tīng)ARP的接口,預(yù)設(shè)的接口為eth0。
-r<記錄文件> 從指定的文件中讀取ARP記錄,而不是從網(wǎng)絡(luò)上監(jiān)聽(tīng)。