471,328 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

Arp request to get MAc Adress with IP address

Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
Sorry if i am to naive. Just learning python

thanks

Oct 30 '07 #1
2 5360
On Oct 30, 1:57 pm, amjad...@gmail.com wrote:
Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
When you start talking about this kind of low-level stuff, you really
need to start thinking about your OS, not Python. How would you do
this task if you had to write in in C? Which system calls would you
need to make?

Once you figure that out, then it's a question how to make those
system calls from Python.

Oct 30 '07 #2
am******@gmail.com wrote:
Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
Sorry if i am to naive. Just learning python

thanks
Python's standard libs don't do that, but you can probably work out
something with sockets.

However, I do recommend you take a look at Scapy, which is just great
for network protocol manipulation. http://www.secdev.org/projects/scapy/

I hadn't used it in a while, but when I last tried it, it was very
promising.
Oct 31 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by RosalieM | last post: by
9 posts views Thread by martin | last post: by
5 posts views Thread by FKothe | last post: by
2 posts views Thread by Sven Wynsberghe | last post: by
11 posts views Thread by mwebel | last post: by
3 posts views Thread by Slawomir | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.