feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

HowTo: Linux Send a Gratuitous ARPs Requests

Posted on 2012-08-16 13:24  feisky  阅读(868)  评论(0编辑  收藏  举报

How do I send gratuitous ARPs under Linux? How do I tell my DUMMY router that the IP is over here now, under Linux operating systems?

You can use the arping command to send a gratuitous reply using the -A option. arping can send ARP REQUEST to a neighbor host:
# arping -U {IP-HERE} -I {Interface-Name-HERE}
# arping -A -c {Number} -I {Interface-Name-HERE}
# arping -U 1.2.3.4 -I eth1

The following command will send a Gratuitous ARP reply, four times, on the eth1 interface for IP address 1.2.3.4.
# arping -c 4 -A -I eth1 1.2.3.4

Where,

  1. -A : ARP reply
  2. -C 4: Send it four times
  3. -I eth1: Use eth1 interface
  4. 1.2.3.4: Replace this with your actual IP address.

转自:http://www.cyberciti.biz/faq/linux-networking-sending-gratuitous-arps/

无觅相关文章插件,快速提升流量