contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

Cannot initiate 2 virtual nodes | Single 1 Tun Interface initiated #2518

Open npcode15 opened 6 years ago

npcode15 commented 6 years ago

Hello,

I am trying to execute the rpl-udp example in native environment. Hence, I would like to have 2 virtual nodes. I am executing sudo ./udp-client.native sudo ./udp-server.native

however, only first of the 2 initiates a tun interface whereas the other one fails. image

Please let me know how to initiate 2 virtual nodes and successfully execute the example. Thank you.

npcode15 commented 6 years ago

@farcaller @heipei @debrouxl @mcr

I apologise for the explicit tagging. It has been seven days since the issue was opened. Can someone please clarify the issue for me.

Thanks in advance.

mcr commented 6 years ago
"failed to open tun device (you may be lacking permission)"

In the future, if you want help on a particular schedule, you are welcome to engage my consulting company.

npcode15 commented 6 years ago

@mcr thanks for getting back. I will surely consult you in the future.

I am using sudo with both commands (please refer to the screenshots in the first comment). And according to the Contiki docs, if I use sudo and build for native, it will automatically create TUN interfaces. In my case, only first of the 2 execution initiates the virtual node whereas the second build gives the following error

"failed to open tun device (you may be lacking permission)"

Thanks.