Sorry, my explanation was not good.
Really I have a VM running an OS (Linux) and lwIP running inside that.
Please, more details in picture attached.
I have been investigating and I think that the problem is associated to PPP netif netmask (ever 255.255.255.255). Please, see the "get_mask" function and "netif_add" call both codes in the "lwip/src/netif/ppp/ppp.c" file.
Thus, the "ip4_route" function does not match the appropriate netif, in this case the netif-1, and returns the default-netif (netif-0, associated to eth0). Then the outgoing packets are forwarding to eth and not to serial. When the client-echo is run in VM#0 the all works fine because the match happens.
Is it correct?
Thanks.
Norberto Goes