I am not aware of a nice perl way to do it, but a very nasty hack could be (on *NIX systems):
my $arp = `/usr/sbin/arp -a`; my $mac = "aa.bb.cc.dd.ee.ff"; if($arp =~ m/\(([\d\.]+)\) at $mac/) { print "$1\n"; }
Update: please do note that the MAC address needs to be in the arp cache for this approach.
In reply to Re: mac to IP address?
by b10m
in thread mac to IP address?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |