Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
I don't think you can do it without patching the Nichestack.
Other stacks, such as the FreeBSD stack or the one in Linux allow to create "aliases" on the network interfaces to add new IP addresses. An alternative could be to use multicast addresses (see this post (http://www.alteraforum.com/forum/showthread.php?t=3344)), but it depends on why your customer needs two IP addresses. - Altera_Forum
Honored Contributor
Thank you Daixiwen,
I don't think that Multicast is the right solution for me because my customer wants to have the possibility to connect to my device using two different IP (one fixed and one dependent on one device parameter). Now I will try to understand effort required to modify Nichestack (I have to use that TCPIP stack or as alternative Micrium one) and eventually handle only one IP address at runtime and give to my customer a simple way to switch to other IP address. Ciao - Altera_Forum
Honored Contributor
You should first have a look into the ARP handler. That's the one that handles MAC-to-IP translation.
Best regards, Ben - Altera_Forum
Honored Contributor
Thank you RisingEdge (Ben),
I will take a look! Ciao, P.