ftjae.blogg.se

Ip over serial in linux
Ip over serial in linux





and something like that on the 2nd peer: PC2:ģ) socat TUN:192.168.1.2/24,up INTERFACE:sl0 &Īnd now, you can successfully ping one PC from another: PC1: Ha-ha, I works but there needs to be some magic :)ġ) slattach -L -s 57600 -p slip /dev/ttyUSB0 &ģ) socat TUN:192.168.1.1/24,up INTERFACE:sl0 & Gerhard Rieger, the socat's developer, says me that: There is a framing problem when we try to make TCP/IP tunnel over serial with only socat. Instead of that, when I send data with ping -c 1 192.168.1.1 remote socat process exits and it's tun0 device destroyed. PC2: socat /dev/ttyUSB0,raw,echo=0,b57600,clocal TUN:192.168.1.2/24,upĪfter that, I have seen tun0 interfaces with proper addresses on both ends but I can't ping one from other.

ip over serial in linux

Is it possible to get an bidirectional IP-tunnel over ttyS0-like serial (modem) devices with the socat utility? I tried to use TUN option but still can't get the result.







Ip over serial in linux