Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
708 Views

Is it possible to handle two IP addresses with one Ethernet device?

Hi all, 

I'm new about TSE and Nichestack and NIOS II, therefore keep it in account within eventual your answer to my post... :) 

 

I would like to know if is possible to handle two IP addresses with Nichestack with only one PHY device on my board. Can anybody help me? 

 

I found another post talking about change of IP address runtime, but unfortunately is not (right now) compliant with my customer request... :( 

 

Thank you all.
0 Kudos
4 Replies
Highlighted
Valued Contributor III

Re: Is it possible to handle two IP addresses with one Ethernet device?

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.
0 Kudos
Highlighted
Valued Contributor III

Re: Is it possible to handle two IP addresses with one Ethernet device?

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
0 Kudos
Highlighted
Valued Contributor III

Re: Is it possible to handle two IP addresses with one Ethernet device?

You should first have a look into the ARP handler. That's the one that handles MAC-to-IP translation. 

 

Best regards, 

 

 

Ben
0 Kudos
Highlighted
Valued Contributor III

Re: Is it possible to handle two IP addresses with one Ethernet device?

Thank you RisingEdge (Ben), 

I will take a look! 

Ciao, 

P.
0 Kudos