11-05-2007 03:02 AM - edited 03-05-2019 07:21 PM
Hi all, can anyone tell me why devices have an arp table. i was told it was only layer 3 devices, but if i got onto my access point and do show ip arp, i see mac addresses mapped to ip addresses.
11-05-2007 04:03 AM
ARP table contains mac-add to IP add binding. At layer 2,frames are processed based on mac-addres but at layer 3, Ip address is used. So, devices would often keep track of the other devices by maintaining an arp table. Even the desktops maintains arp table.
11-05-2007 06:46 AM
ARP basically gives you mac address to ip address mappings.Say host A wants to communicate with host B.Host A knows the ip address of B which would be L3 destination address.But when it has to frame the packet at Layer2 it needs the Mac address of B.ARP helps A get this by sending an ARP Broadcast on the LAN which asks the host B to identify itself.host B replies with its mac address which A uses to frame the packet.Mac tables in devices (say in a switch) are a way to help hosts get mac addresses.
Mac addresses tables are present in L3,L2 devices as ip mac resolutions are needed for both packet swicthing and frame forwarding
11-05-2007 08:40 AM
if the router does not know the mac address for the ip, can the router itself send an arp broadcast for the mac address ?
11-05-2007 10:39 AM
Refer this link for how router process ARP request.
Router doesnt need to knw mac-add of all hosts connected to its segment instead it maintains mac-add of its directly connectd neighbors only.
11-05-2007 11:43 PM
router doesnt need to know the mac of every ip behind it.Every host has something called as a default gateway which is the router interface ip.For any frame destined towards another host the destination mac is always of this interface.
So the router doesnt need to know the destination hosts mac..it just needs to know the mac-address of the next hop router
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: