Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 660 Bytes

arpwatch.md

File metadata and controls

20 lines (15 loc) · 660 Bytes

yum install arpwatch

systemctl status arpwatch

arpwatch -i eth0

-d 启动排错模式。
-f<记录文件> 设置存储ARP记录的文件,预设为/var/arpwatch/arp.dat。
-i<接口> 指定监听ARP的接口,预设的接口为eth0。
-r<记录文件> 从指定的文件中读取ARP记录,而不是从网络上监听。
-n 指定附加的本地网络
-u 指定用户和用户组
-e 发送邮件给指定用户,非默认的root用户
-s 指定用户名作为返回地址,而不是默认的用户root

日志:
tail -f /var/log/messages

配置文件:
/etc/sysconfig/arpwatch