Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: How can I find a MAC address from aremote IP ?

by riffraff (Pilgrim)
on Mar 31, 2001 at 02:00 UTC ( #68518=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: How can I find a MAC address from aremote IP ?
in thread How can I find a MAC address from aremote IP ?

On the other hand, there is a mac address to ip address mapping in snmp mib variables (as long as your switch supports it). Without looking it up, it might be something like PhysAddrToInetAddr. ....

Nope, wait, after just looking it up, ip.ipNetToMediaTable.ipNetToMediaEntry.* is what you want.

snmpwalk <switchname> <communityname> IpNetToMediaEntry

Will list all (I believe) ports, which ip address is on that port, and which mac address is associated with that ip address.

That could help, I guess.

riffraff


Comment on Re: Re: Re: How can I find a MAC address from aremote IP ?
Download Code
Re: Re: Re: Re: How can I find a MAC address from aremote IP ?
by riffraff (Pilgrim) on Mar 31, 2001 at 02:23 UTC
    One thing I wanted to add, different companies support different mib variables, even though there is a standard. Bay Networks (Nortel Networks now) puts most of their stuff in the private enterprise variables, so the above information may need to be modified.

    riffraff

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://68518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2014-07-26 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls