LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 11-10-2012, 06:53 PM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 259

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: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
can't delete arp entries YaMaHaBoB Linux - Networking 1 06-23-2011 08:16 AM
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration