Linux arpwatch命令

更新时间: 2019-10-16 12:40

Linux arpwatch命令用于监听网络上ARP的记录。

ARP(Address Resolution Protocol)是用来解析IP与网络装置硬件地址的协议。

arpwatch可监听区域网络中的ARP数据包并记录,同时将监听到的变化通过E-mail来报告。

语法

arpwatch [-d][-f<记录文件>][-i<接口>][-r<记录文件>]

参数

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

实例

监听网卡eth0的ARP信息

arpwatch -i eth0

监听ARP的信息,将相关信息记录到相应的文件

# arpwatch -i eth0 -f a.log //将信息记录到a.log中
Blockchain Basics

Blockchain Basics

Daniel Drescher / Apress / 2017-3-16 / USD 20.99

In 25 concise steps, you will learn the basics of blockchain technology. No mathematical formulas, program code, or computer science jargon are used. No previous knowledge in computer science, mathema......一起来看看 《Blockchain Basics》 这本书的介绍吧!

XML 在线格式化

XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器

Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试