11-26-2008 02:39 PM - edited 03-06-2019 02:42 AM
Hi all, when I have a router with an arp entry for a device, firstly how does the router leran this, does the router need to arp for it itself? or does it learn it as traffic flows through it?
also if I plug one device in with an ip address, then move this ip address to another machine, how does the router update the arp ?
11-26-2008 03:12 PM
ARP works on layer 2.
When a switch is first turned on it has no knowledge of any devices. As the first device sends a packet in to be delivered elsewhere the only thing the switch knows is the mac address and the port number that received that ticket. The switch then floods a request out all of it's other ports asking where to send the packet. Which ever device responds will also send it's mac address and the port it's on. In this method the ARP table gets filled. So a router does not need to arp for it's self.
Arp tables are refreshed every 30 or 60 seconds.
11-29-2008 05:27 AM
Carl,
As frames are recevied the router copies the source MAC address, makes note of the port on which it was received and places it in the ARP table, if the entry already exist it updates the ARP counter.
If the router needs to forward a frame to a local network and it does not have an entry for the destination address in the ARP table it then will ARP for the destination.
If you move an IP address to another machine the router has to update the IP to MAC address association, you can either:
1. Wait for the ARP entry to expire
2. Manually clear the arp table ( clear arp)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide