LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Networking help please. arp iptables solution for duplicate ip address? (https://www.linuxquestions.org/questions/linux-newbie-8/networking-help-please-arp-iptables-solution-for-duplicate-ip-address-4175661417/)

zepplin 09-24-2019 10:34 PM

Networking help please. arp iptables solution for duplicate ip address?
 
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.

berndbausch 09-24-2019 11:37 PM

duplicate of https://www.linuxquestions.org/quest...e-s-4175661416 reported.


All times are GMT -5. The time now is 03:54 AM.