Sample Header Ad - 728x90

How to talk to a tap device on Linux from another computer

1 vote
1 answer
5332 views
I am running Linux on VMware Fusion on my Mac. On Linux, I am using a TCP echo server based on TAP devices (it's called PicoTCP, link here: https://github.com/tass-belgium/picotcp) . I run the echo server with this command: sudo ./build/test/picoapp.elf --tap tap1:192.168.13.37:255.255.255.0 --app tcpecho:8000 on one terminal window, and I can then talk to the echo server by using the command: sudo ip addr add 192.168.13.38/24 dev tap1 ; sudo ip link set tap1 up; followed by a simple netcat like this: nc 192.168.13.37 8000. My goal is now to be able to talk to the tcp echo server from my Mac (or any other computer on the same network), by running netcat (or equivalent command) from outside the VM. How can I do that? Currently, if I try running netcat with either the ip address of the VM network card, or the ip address specified when running the picotcp server (in this case it would be 192.168.13.37) it does not work. Thank you so much! Also, let me know if you need more information from my current setup!
Asked by Gabriele Oliaro (11 rep)
Jul 8, 2019, 10:59 PM
Last activity: Jul 13, 2019, 10:36 AM