What I'm trying to do is get all the ip addresses in my network, and I thought, assuming I know the address of all subnets could use arp requests to achieve that if there was a way to forward these requests over different subnets.
For example , assume I had two hosts 192.168.0.2/24 and 192.168.1.2/24 connected via router using IP addresses 192.168.0.1/16 192.168.1.1/16. I would like to send an arp request from 192.168.0.2/16 to 192.168.1.2/16. I thought maybe if the arp request was encapsulated in layer 3 header containing 192.168.1.2/24, or 192.168.1.255/24 as the dsetination this will work.
If it is possible and you know a tool that does that I will be happy to know about this tool. If it isn't, I would like to know what happens to a packet like the one I described above