Think about Loose Coupling | |
PerlMonks |
Re: How can I find a MAC address from aremote IP ? (MAC n' IP cheese)by ybiC (Prior) |
on Mar 30, 2001 at 22:47 UTC ( [id://68467]=note: print w/replies, xml ) | Need Help?? |
As wise monks have already stated above:
If you are indeed looking for the MAC address of a local-to-your-LAN-segment device, (code) MAC n' IP cheese includes code of OWTDI.
Update: I was thinking of IPv4 only. As lhoward points out, IPv6 is substantially different. Update 2: Working from riffraff's Re: Re: Re: How can I find a MAC address from aremote IP ? post above, I found that (code) MAC n' IP cheese can work for remote segments just by replacing the "Querying ARP table..." section with snmpwalk <router_name_or_address> <community_string> IpnetToMediaPhysAddress Woo-hoo! 8^)
In Section
Seekers of Perl Wisdom
|
|