LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-30-2005, 01:54 AM   #1
rupeshdwivedi
LQ Newbie
 
Registered: Aug 2005
Location: pune(India)
Posts: 8

Rep: Reputation: 0
Question Finding Ip address with Mac address


Hello Guyz,

How can we get the Ip address of the destination machine in wireless media ,by only sending packet with its mac address and its Ip adress as
0.0.0.0 .

Ex::If we want know the ip address of access point when we only have its mac addess only.
Any application that implements the same also can help .

Thanx
 
Old 08-30-2005, 02:03 AM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 16
if you know it's MAC and it's on the same network segment, you could add a static ARP entry for it, for example :

/usr/bin/arp -s 192.168.1.100 aa:bb:cc:dd:ee:ff

obviously, where the MAC is whatever MAC the AP has, and IP of any free host on your subnet.

this would at least let you see it, then you could connect to the access point and trawl its config for it's actual IP. It should work... in theory

either that, or if it has a working IP in your subnet, but you just don't know it, grep for the MAC in your arp table...

/usr/bin/arp -a | /usr/bin/grep aa:bb:cc:dd:ee:ff

Last edited by angrybeaver; 08-30-2005 at 02:06 AM.
 
Old 08-30-2005, 04:44 AM   #3
rupeshdwivedi
LQ Newbie
 
Registered: Aug 2005
Location: pune(India)
Posts: 8

Original Poster
Rep: Reputation: 0
finding ip address from mac address

Hello Guyz,

How can we get the Ip address of the destination machine in wireless media ,by only sending packet with its mac address and its Ip adress as
0.0.0.0 .condition is host and Access point are not in the same network.

Ex::If we want know the ip address of access point when we only have its mac addess only and .condition is host and Access point are not in the same network.

Thanx
 
Old 08-30-2005, 06:34 AM   #4
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Wow...
I had to read your two posts very thoroughly to be able to notice the difference. I think it would have been much clearer if you thanked angrybeaver for his reply and explained why it wasn't exactly what you needed.

Anyway, as far as I know, there is no generic solution to your problem. MAC adresses have a meaning only within their subnet. So if you have a mac address, the only way to get the ip address is by querying a computer that is already on the same network. angrybeavers solution is the best way to go.

Groetjes,

Kees-Jan
 
Old 09-01-2005, 02:00 AM   #5
rupeshdwivedi
LQ Newbie
 
Registered: Aug 2005
Location: pune(India)
Posts: 8

Original Poster
Rep: Reputation: 0
finding IP address again

Thank you Mr angrybeaver for the reply ,

But I think I have not clearly mentioned my problem. I have a Host Machine(HM) and AccessPoint (AP) . The HM get associated, authenticated and authorized by the AP. On radio. This we can see by issuing

IWCONFIG <interface>

This gives us the SSID and MAC address of the AP.
Now I want to know the AP s IP address so that I can set the IP address of the HM.


I hope this time I have my point clear

Thanks in Advance

Rupesh
 
Old 09-01-2005, 02:21 AM   #6
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
I'm not sure I fully understand what you are trying to do. I would expect that during association, authentication and authorization, you also are assigned an IP address using DHCP. So I'm not sure why you would want to sent the IP address of the host machine.

On the other hand, since both HM and AP are on the same network angrybeavers suggestion should work. Doesn't it for you?

Groetjes,

Kees-Jan
 
Old 09-01-2005, 07:44 AM   #7
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I can't add much more than what has already been posted, but just because you get an association with a WAP, doesn't necessarily mean that the WAP is going to route layer 3. That depends on the AP's configuration. If you do not know the WAP's layer 3 configuration, then I can only assume you are trying to use a "possibly" unsecured WAP.

FWIW: I have AP's that are configured to hand-out rotating WEP keys, so anyone can get an association. But if the client does not authenticate using a protocol like LEAP etc... (after receiving the WEP key), then all you have is an association, nothing more. I even configured my wireless client with the proper IP address/netmask (I manage the WAP's) and was still not able to get on the network without the additional authentication. Which was my goal in testing the AP's security configuration for wireless VoIP based phones.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
Finding a MAC Address bigrig2004 Linux - Networking 1 01-10-2005 07:21 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
finding my mac address sethgeekx86 Linux - General 5 07-14-2004 11:17 AM
finding people MAC address over localnet gregram Linux - Networking 1 08-18-2003 08:38 AM


All times are GMT -5. The time now is 02:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration