LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-02-2006, 12:10 PM   #16
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 756

Rep: Reputation: 144Reputation: 144

Quote:
Originally Posted by theNbomr
(does anyone know whether other nodes also cache the reply, or is it sent uni-cast?)
I appreciate your tutorial, so I took it as a challenge to lookup your only question. My old copy of Network Protocol Handbook has conflicting answers, so I went to the RFC. Here's an excerpt.

Quote:
Originally Posted by RFC826
Let there exist machines X and Y that are on the same 10Mbit Ethernet cable. They have Ethernet address EA(X) and EA(Y) and DOD Internet addresses IPA(X) and IPA(Y) . Let the Ethernet type of Internet be ET(IP). ...

Machine Y gets this packet, and determines that it understands the hardware type (Ethernet), that it speaks the indicated protocol (Internet) and that the packet is for it ((ar$tpa)=IPA(Y)). It enters (probably replacing any existing entry) the information that <ET(IP), IPA(X)> maps to EA(X). It then notices that it is a request, so it swaps fields, putting EA(Y) in the new sender Ethernet address field (ar$sha), sets the opcode to reply, and sends the packet directly (not broadcast) to EA(X).
So the responses is sent directly back to the requester, not broadcast.
 
Old 09-11-2007, 10:04 AM   #17
medentdavel
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Here is the best solution, as simple as I can describe it.

-You need to use three different arp -s commands:
arp -s 192.168.0.181 MAC_Address_Of_Box1
arp -s 192.168.0.181 MAC_Address_Of_Box2
arp -s 192.168.0.181 MAC_Address_Of_Box3

-In your script/program everytime you need to access one of the three boxes, you will need to first issue the corresponding arp -s command for the box you are trying to access. For example, say you want to ping to Box2, then ping to Box1, you would have to:

arp -s 192.168.0.181 MAC_Address_Of_Box2
ping 192.168.0.181
arp -s 192.168.0.181 MAC_Address_Of_Box1
ping 192.168.0.181

Good luck!
 
Old 09-12-2007, 01:48 AM   #18
basilio
LQ Newbie
 
Registered: Aug 2006
Location: Italy
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Smile Solved

Ok, thank you for your suggestions, and thanks to all.
I'll try asap.
For the moment I managed in modifying the firmware of the three boxes and changing their IPs, after a long "struggle" with the manufacturer...
and now it works!

Thanks again!

bas
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can MAC addresses be tracked? m00 Linux - Security 7 11-16-2004 09:50 PM
can duplicate MAC addresses exist ? mehargags Slackware 3 03-22-2004 01:46 PM
Viewing MAC addresses ivanatora Linux - Networking 1 09-26-2003 12:47 PM
Mac Addresses nixdisciple Linux - Security 6 07-01-2002 10:55 PM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM

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

All times are GMT -5. The time now is 07:10 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