Actually I don't want to have two different IP addresses on the same ethernet port because the protocol I'm trying to implement works on layer 2. If you take a look at the picture in the original message it specifies two logical Ethernet ports and the protocol says: "the node communicates with the network via two logical interfaces based on a single physical port".
I can distinguish the two logical Ethernet ports I created by netif_add() by giving them two different MAC addresses but the problem is that the destination MAC of all received messages is a MULTICAST address which means, the two logical interfaces won't be able to identify which of them should handle the received message. I'm not sure if my problem is clear, but I guess the image says it all. Thanks, On Thu, Jun 14, 2018 at 3:42 PM, Sergio R. Caprile <scapr...@gmail.com> wrote: > (crossposted from the developers' list) > So, summing up, you (the OP) want to have two IP addresses on one > Ethernet (physical) port. This has been asked several times on the list, > under several different subjects, and is perhaps hard to find. I suggest > you do some searches on the list. > > Perhaps we can contribute with something for the wiki or the docs ? > > First of all: networking. > - How do you plan to have your IP hosts arranged ? > -- Will they be in different subnets ? (Will you route ?) > -- Will they be in the same subnet ? (Will you bridge ?) > > lwIP has several hooks that can help you go either way, and some users > have already done this in the past. So... > > _______________________________________________ > lwip-users mailing list > lwip-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/lwip-users >
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users