Article 4R487 [SOLVED] How? Use arp and iptables to communicate duplicate ip device(s)?

[SOLVED] How? Use arp and iptables to communicate duplicate ip device(s)?

by
zepplin
from LinuxQuestions.org on (#4R487)
I have a computer with two wifi dongles. Each dongle has a separate IP address, ex. wlan0 10.0.0.20 & wlan1 10.0.0.30. Each wifi dongle associates with a separate wireless device, but the wireless devices both have the same ip address for their interface, ex. 10.0.0.1. I know the MAC addresses of each wireless device. How can I "talk" to each wireless device, ex. ping, and reach each separately? I don't have the ability to change the IP address of the wireless devices, their IP address must remain 10.0.0.1.

I need a solution which for two separate processes, one for each radio (wlan0, wlan1) which need to dialogue with each radio in parallel.

I thought of putting arp definitions, one for each interface (wlan0, wlan1) with a "fake" ip address and the MAC address. I am assuming this could then be used by the kernel to get the proper MAC address from ARP? Can iptables (NAT) be used to "fix" the fake ip address to the correct ip address, i.e. 10.0.0.20 or 10.0.0.30.. ?

I am not that familiar with Unix networking, so I am struggling.. Thanks.latest?d=yIl2AUoC8zA latest?i=nMHW1IAvDBc:n7NLdY-J64c:F7zBnMy latest?i=nMHW1IAvDBc:n7NLdY-J64c:V_sGLiP latest?d=qj6IDK7rITs latest?i=nMHW1IAvDBc:n7NLdY-J64c:gIN9vFwnMHW1IAvDBc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments