LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2012, 06:53 PM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question use broadcast messages to add ARP table entries


Is it possible to configure Linux kernel(I guess it depends on TCP/IP stack) to use broadcast messages for building up ARP table? I mean for example I have two hosts PC1 and PC2 in the same broadcast domain and both hosts have empty ARP table. Now if I execute "ping -b -c1 10.10.10.255" in one of the hosts, then other receives:

Code:
02:34:35.783967 00:1a:6b:6c:0c:cc > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 98: 10.10.10.2 > 10.10.10.255: ICMP echo request, id 8297, seq 1, length 64
Technically it could add association between 00:1a:6b:6c:0c:cc and 10.10.10.2 to it's ARP table but it does not. I guess this behavior is turned off in order to avoid huge ARP tables in case of large broadcast domains? Is there a way to use broadcast messages to add ARP table entries? I use 2.6.32-5-amd64 Linux.
 
Old 11-11-2012, 12:58 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by m4rtin View Post
Is it possible to configure Linux (..) to use broadcast messages for building up ARP table?
Broadcasts are the way for populating the ARP cache AFAIK.


Quote:
Originally Posted by m4rtin View Post
I have two hosts PC1 and PC2 in the same broadcast domain and both hosts have empty ARP table.
If with "broadcast domain" you mean the same network segment then I would first wonder what would be wrong with these hosts or their settings. (BTW 'arp -a' doesn't produce as much detail as 'ip -s n ls'.) If you have fixed MAC - IP mappings then you could use static ARP entries in /etc/ethers.

BTW thanks for mentioning Cloudshark in your other post. Good to know such a service exists.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't delete arp entries YaMaHaBoB Linux - Networking 4 02-01-2023 04:11 PM
arp table: How to cause entries to stay forever zvivered Red Hat 2 09-09-2011 03:52 AM
ARP table or routing table consulted first? YaMaHaBoB Linux - Networking 4 07-15-2011 04:56 PM
filter /etc/messages for certain IP table entries don_wombat Linux - Software 0 12-14-2004 03:45 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration