|
From: | Patrick Klos |
Subject: | Re: [lwip-users] Using multiple IP addresses on one interface |
Date: | Tue, 5 Jan 2016 12:48:10 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/5/2016 12:34 PM, John Pote wrote:
My pleasure.
We ran into that same problem. We are currently using the Tiva TM4C129X processor in several of our designs now with no problems.
The IP subnet mask is used by the IP stack to determine when packets can be sent on the local wire and when they need to be forwarded to the "gateway" address (i.e. your router). I'm pretty sure it has no effect on incoming packets (like you're trying to do).
Kind of like NAT? What is your real goal? To get a single device listening to the same port on several IP addresses?
Sure. I presume you can listen to the same port on different interfaces (IP addresses) as well.
Not really (in my opinion). Remember, whatever you "translate" on the way in will need to be reverse-translated on the way out. Not impossible, but I'm not sure it would be easier than just creating several "virtual" interfaces? It would take some experimenting, either way.
If I get a chance, I'll pull out my Tiva Launchpad and see if I can rig up something like what you're trying to do. Good luck, Patrick Klos Laufer Wind |
[Prev in Thread] | Current Thread | [Next in Thread] |