Linux - NetworkingThis 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.
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.
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.
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.
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'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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.