LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Finding Ip address with Mac address (https://www.linuxquestions.org/questions/linux-networking-3/finding-ip-address-with-mac-address-358366/)

rupeshdwivedi 08-30-2005 01:54 AM

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

angrybeaver 08-30-2005 02:03 AM

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 :p

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

rupeshdwivedi 08-30-2005 04:44 AM

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

kees-jan 08-30-2005 06:34 AM

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

rupeshdwivedi 09-01-2005 02:00 AM

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

kees-jan 09-01-2005 02:21 AM

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

scowles 09-01-2005 07:44 AM

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.


All times are GMT -5. The time now is 01:06 PM.