#!/usr/bin/perl
use strict;
my $target = shift || die("Specify target\n");
my $dev = shift;
use Net::Frame::Layer qw(:subs);
$target = getHostIpv6Addr($target) or die("lookup\n");
my $d;
if ($dev) {
$d = Net::Frame::Device->new(
dev => $dev,
target6 => $target,
);
}
else {
$d = Net::Frame::Device->new(target6 => $target);
}
my $mac = $d->lookupMac6($target);
print 'MAC: '.$mac."\n" if $mac;
print $d->cgDumper."\n";