I have two machines, each with a virtual interface, with the following configurations:
Machine1:
Please note the broadcast address for the virtual interface. Machine 2:
Once again, please note the broadcast address for the virtual interface.
Arp table on Machine 2 prior to pinging machine 1:
? (172.16.0.201) at 00:09:6b:19:e5:05 [ether] on eth0
And after sending a ping from machine 2 to 192.168.131.1:
? (192.168.131.1) at 00:09:6b:19:e5:05 [ether] on eth0
? (172.16.0.201) at 00:09:6b:19:e5:05 [ether] on eth0
To my understanding, this should not have worked, because Machine 1 should not be listening on Machine 2's broadcast address (you'll note I have picked a non-default broadcast for a Class C address on machine 2). But it seems to work.
Can anyone explain how this is working - i.e. how machine 2 is resolving machine 1's MAC?
---------- Post updated at 04:45 PM ---------- Previous update was at 12:28 AM ----------
Moderators, thank you for putting the post in such a nice format! I apologize for the mess it looked like before...
For anyone interested, this did get resolved with some help from other forums. Apparently ARP (and DHCP) uses a special type of broadcast called "Limited broadcast" (vs. Direct broadcast) which uses the IP of 255.255.255.255 and a link layer address ff:ff:ff:ff:ff:ff:ff. Limited broadcast does not use the network broadcast IP, rather an IP address with all bits set.
Direct broadcast on the other hand sends packets to all hosts in the broadcast domain of the network using the network broadcast IP. Routers will generally not forward limited broadcast packets, but you can forward direct broadcast packets.
Last edited by pludi; 03-26-2010 at 03:15 AM..
Reason: code tags, please...
I'm putting together a shell script while I'm learning UNIX -- just for myself. It's a little script that simply takes some vendor names and writes them to a file. So far I'm at the stage where the user enters the name of the file and places it in a folder called vendorlists:
* ) touch... (5 Replies)
Hi,
I have inherited a server at work that has one IP and two virtual IP's. It is live and I want to figure out what each IP is being used for. I thought of NETSTAT but I cannot figure out how to get it to list what each IP is listening for. ANy advice? (8 Replies)
I am trying to delete everything in the parenthesis(including the parenthesis) in this text:
Wind: from the WNW (290 degrees) at 6 MPH (5 KT)
Pressure (altimeter): 29.82 in. Hg (1009 hPa)
Temperature: 80.1 F (26.7 C)
Dew Point: 72.0 F (22.2 C)
Relative Humidity: 76%
Trying to make it look... (3 Replies)
Hi, I need a little help here. I am exporting user info from a PSQL database and everything is working with the exception of this:
10029008:dsAuthMethodStandard\:dsAuthClearText:classword:10029008:2004:10029008:10029008:/home/student/1002/90/08:10029008
It is putting a colon right before the... (1 Reply)
All,
I appreciate any help you can provide on this. I get an "else unmatched" error with this code and can't figure out why. If I remove the 1st if statement through the 1st else the script runs through fine. Any thoughts?
#decrypt file
sudo -u gpg /usr/bin/gpg... (4 Replies)
I am having problems scripting in UNIX. I am currently attending school and for the first time I am being introduced to scripting. My problem is I am supposed to enhance the spell_check by adding a third optional argument. The third argument is to specify a list of words to be added to the... (1 Reply)