Re: Connect two Zephyr instances via zeth interface


Jukka Rissanen
 

Hi Lei,

see this example how to setup Linux host in this kind of setup
https://github.com/zephyrproject-rtos/zephyr/issues/24282

Cheers,
Jukka

On Tue, 2020-04-28 at 17:19 +0200, Lei Xu wrote:
Hi,

I'm implementing two zephyr projects in the same host, which will
communicate with each other. Then I found the sample code
https://docs.zephyrproject.org/latest/samples/net/eth_native_posix/README.html
, which shows how to setup two zephyr instances that can communicate
via the created zeth interfaces. I have tried exactly what the
instruction writes, but it doesn't work when I tried to ping the
device in the net-shell. So, could you give me some tips, should I
configure anything else in my host? Or may be some necessaries that
are missed in the instruction?

Also, as an alternative method, I tried to run net-setup.sh script
and create a zeth interfaces, in which several IP addresses are
added. My question is: is that possible for the zephyr project
directly to set the created zeth as the default interface? So that
zephyr project can directly use the added IP address.

Looking forward for your reply. Thank you!



Kind regards,

Lei

Join users@lists.zephyrproject.org to automatically receive all group messages.