How to update the ARP table of a router or switch? could it be possible through broadcasting

arpmac addresssnmp

I have mac table list of router, now I am trying to get a Ip address for each mac address in mac table list. So i tried to use ARP, unfortunately ARP is missing some of the mac addresses mapping which are listed under mac table. How to get all mac-IP address mappings. Is there any way to get these mappings? Will it be possible by updating ARP table, if so how to update it?

Best Answer

Use a tool like NMAP with the -sP option (ping scan) against all subnets configured on interfaces:

nmap -sP [subnet IP]/[bitmask]

[repeat as needed for all connected subnets on router]

Then collect your SNMP information prior to the ARP timeout. If you still have MAC addresses in your CAM table that you can't correlate to an IP, they don't have one configured.