Type in
for example to list all entries in the arp cache of your host (name, ip-address, mac-address).
You can also check the man page of arp to see what other switch might suit your needs best.
I posted this thread under BSD but realized that it actually belongs here instead.... makes more sense to put it under IP. So without further delay on to my problem ...
I havent been using UNIX for that long, so this question might sound quite stupid to most of you. I want to know how to mask my... (2 Replies)
Hi sir,
i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address.......
but i'm nt getting that how i can pass the MAC address to Frame........
Please give me an idea for making such program...
Thanks & regards
Krishna (3 Replies)
Not sure if this is the right place to post this, but I thought I'd start here. Not really a Unix question, but I'm hoping the gurus here can help me in an area I know little about.
Someone got one of my credit card numbers. Tried to use it to charge a bunch of stuff over the internet. The... (4 Replies)
I m having interface ce0 ce1 and its sub interfaces for that.
I want to give MAC addresses for the same.
How will I assign it.
Please give solution for the same (4 Replies)
I have following message in my messages file on solaris 10
WARNING: e1000g3712000:3 has duplicate address 010.022.196.011 (in use by 00:50:56:85:25:ef); disabled
Now is there any way i can find which server has 00:50:56:85:25:ef mac address either IP or Hostname ? (6 Replies)
Hi folks,
I found out the following:
provadm@BKP_LIV_NPPGW_02:home/provadm%/usr/sbin/arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- -------- --------------------
ce5 BKP_OnM_NPPGW_02 255.255.255.255 SPLA 00:14:4f:44:e0:86... (1 Reply)
four interfaces with ifconfig
all interfaces have the same mac. If is not set for unique.
but it still works.
what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies
LEARN ABOUT DEBIAN
net::libdnet::arp
Net::Libdnet::Arp(3pm) User Contributed Perl Documentation Net::Libdnet::Arp(3pm)NAME
Net::Libdnet::Arp - high level API to access libdnet arp_* functions
SYNOPSIS
use Net::Libdnet::Arp;
my $h = Net::Libdnet::Arp->new;
my $mac = $h->get('10.0.0.1');
my $sucess = $h->add('10.0.0.1', '00:11:22:33:44:55');
my $sucess = $h->delete('10.0.0.1', '00:11:22:33:44:55');
my $data;
$h->loop(&arp_print, $data);
sub arp_print {
my ($e, $data) = @_;
printf("%s at %s
", $e->{arp_pa}, $e->{arp_ha});
}
DESCRIPTION
This modules is a higher level abstraction for libdnet arp_* functions.
METHODS
new ()
Returns an object to access arp cache table on success, undef otherwise.
get (scalar)
Returns the mac address of specified IP address, undef otherwise.
add (scalar, scalar)
Adds an entry to arp cache table. Returns 1 on success, undef otherwise. First parameter is the IP address, second is the mac address.
delete (scalar, scalar)
Deletes an entry from arp cache table. Returns 1 on success, undef otherwise. First parameter is the IP address, second is the mac
address.
loop (subref, [ scalarref ])
Calls the specified sub ref for each entry in the arp cache table. The second optional parameter is a scalar ref, to store state
information (if any).
AUTHOR
Patrice <GomoR> Auffret
COPYRIGHT AND LICENSE
You may distribute this module under the terms of the BSD license. See LICENSE file in the source distribution archive.
Copyright (c) 2008-2011, Patrice <GomoR> Auffret
perl v5.14.2 2011-10-15 Net::Libdnet::Arp(3pm)