Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Malkavian (Friar)
on Mar 30, 2001 at 20:05 UTC ( #68410=note: print w/ replies, xml ) Need Help??


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

Hmm.. You sure arp works on a distant remote IP?
From memory, it's only local subnet.
Plus, I don't think you get a valid MAC address from a PPP link either.


Comment on Re: Re: How can I find a MAC address from aremote IP ?
Re: Re: Re: How can I find a MAC address from aremote IP ?
by arhuman (Vicar) on Mar 30, 2001 at 20:14 UTC
    Oops ! You're right arp will only work with local IP addresses...
    (I always forget to mention...)

    "Only Bad Coders Badly Code In Perl" (OBC2IP)
(tye)Re: How can I find a MAC address from aremote IP ?
by tye (Cardinal) on Mar 30, 2001 at 22:26 UTC

    Nothing is going to tell you the MAC address of something that is not within your local broadcast domain! You'd have to get some code to run in the local broadcast domain of the remote IP address and have it forward you the information.

    And PPP links don't have MAC addresses. A MAC address is an Ethernet thing and you don't run PPP over Ethernet.

    So I would assume that the original question was asking for a MAC address of an Ethernet (and non-PPP) adapter that was not local to the computer but that was in the local broadcast domain -- nothing else makes much sense. So ARP is the most logical answer.

            - tye (but my friends call me "Tye")
      Actually.. MAC addresses are not an Ethernet thing. Token Ring uses them too... The reason Remote networks are usually harder to get MAC address for could be because of Hardware Address Translation. It all depends on how the routers are set up.
Re: Re: Re: How can I find a MAC address from aremote IP ?
by IlyaM (Parson) on Jan 08, 2003 at 16:06 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-11-26 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (166 votes), past polls