http://www.perlmonks.org?node_id=68518


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

Replies are listed 'Best First'.
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