ARP discovers MAC on the same subnet?



Hi All

I am finding that ARP assigns the gateway MAC for addresses outside
the subnet. For instance:

Ping from 172.16.170.30 to 172.16.170.35 adds an entry for .30 in ARP
table of .35. Vice versa.

Ping from 172.16.170.30 to 10.170.100.21 adds an entry for .21 in ARP
table with the MAC address of the gateway. Vice-versa.

Is this what one can expect from ARP?

Thought, ARP will cache all of the MAC addresses on the intranet.

Thanks.
.



Relevant Pages

  • Re: Translate MAC address to IP address
    ... >> I have some MAC addresses from a local Ethernet segment. ... a broadcast ping to the specified MAC address (not to the broadcast ... This causes an ARP exchange for any such address not ...
    (freebsd-net)
  • Re: [SLE] ethereal
    ... ARP is "address resolution protocol". ... ethernet connections are between hardware or MAC addresses, ... address of your ethernet card -- and obviously (I hope it's obvious ... most often consisting only of your gateway. ...
    (SuSE)
  • Re: Pure IP & ARP broadcasts
    ... It actually communicates via the MAC address of the Nics (aka Layer2 ... what the ARP request does. ... A host has a packet to send, it has the IP# and nothing else. ... But if the owner of the IP# is not on that segment then the Router replies ...
    (microsoft.public.windows.server.networking)
  • Re: [SLE] ethereal
    ... > to directly actually need to know the MAC ... > will respond with an ARP Reply giving your MAC address. ... > most often consisting only of your gateway. ... > minute of the day the gateway knows what ethernet card is using those ...
    (SuSE)
  • Re: Getting an IP address from a MAC address
    ... Have you considered using arp and simply checking your arp tables? ... If you are on the same net, you can do a single ping to the broadcast to get ... Where <mac> is the MAC addr you are looking for. ... > Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts! ...
    (Security-Basics)