Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-30-2005, 01:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: pune(India)
Posts: 8
Rep:
|
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
|
|
|
08-30-2005, 02:03 AM
|
#2
|
Member
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104
Rep:
|
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.
|
|
|
08-30-2005, 04:44 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Location: pune(India)
Posts: 8
Original Poster
Rep:
|
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
|
|
|
08-30-2005, 06:34 AM
|
#4
|
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
|
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
|
|
|
09-01-2005, 02:00 AM
|
#5
|
LQ Newbie
Registered: Aug 2005
Location: pune(India)
Posts: 8
Original Poster
Rep:
|
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
|
|
|
09-01-2005, 02:21 AM
|
#6
|
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
|
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
|
|
|
09-01-2005, 07:44 AM
|
#7
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
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 07:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|