Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to enable my linux-kernel to passively listen (learn) the arp request broadcasted in the lan segment (arp request in the network not destined for me). Is there any configuration available?

share|improve this question

migrated from Jun 29 '12 at 1:52

This question came from our site for professional and enthusiast programmers.

What do you want to do with this information? Merely for logging purposes, or do you want to forward with these entries? If you want forwarding, how many differen tsubnets are attached to this ethernet interface? – Mike Pennington Jun 28 '12 at 12:19
does it matter anyway what I want to do with the information? – sahil Jun 28 '12 at 12:46
I tried this without VRRP. I connected 3 routers in a lan. now i sent an arp request from the first router to second routers. Now both get each other's mac-address. Meanwhile tcpdump was running on the router3 and I could see that the arp-request went to router3 also but it didn't updated its arp table. I want it to passively listen and learn. All the routers have linux kernel. – sahil Jun 28 '12 at 13:12
The "why" matters often just as much (if not more) than the "how". All good technical questions should contain what you're trying to achieve, because that allows us to help you best and maybe even offer up some clever alternatives that you hadn't thought of. That's the beauty of collective knowledge. – Dan Jun 29 '12 at 11:27

Does the information have to be collected by the kernel? Or do you just need the machine to collect the information?

A good solution for learning the arp mappings in a network is Arpwatch. I run it on RHEL and it works like a champ. It keeps all the mappings in a database file, and can be configured to email on various kinds of events, like a new mapping appearing, or the MAC address mapped to an IP address changing.

share|improve this answer
I'm sorry but arpwatch isn't helpful for the reasons I explained in my answer. – Mike Pennington Jun 30 '12 at 13:59

What you want is not what ARP (or ethernet switching) is supposed to do; ethernet switches deliver ARP replies to the address in the ethernet frame, and ARP replies are sent to a unicast mac-address.

If you want to constantly keep the mac-address of a host in your local linux ARP table, then cron a job to send a ping to each host every five minutes. Alternatively, you can manually hard-code the ARP entry in linux (as root):

arp -s 00:50:ba:85:85:ca
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.