Sunday, March 5, 2017

tcp/ip over serial port

we will use virtualbox to test it.
- so on virtualbox1, on serial setting:
   - enable serial
   - port com1
   - mode host pipe
   - path, /home/user1/pipeserial1

- on virtualbox2, on serial setting,
   - enable serial
   - port com1
   - mode host pipe
   - enable connect to existing pipe
   - path, /home/user1/pipeserial1



1- on host1 execute the following command(set ip address to 1.1.1.1/30)
$ sudo pppd proxyarp mtu 1280 persist nodeflate noauth lcp-echo-interval 10 crtscts lock 1.1.1.1:1.1.1.2 /dev/ttyS0 115200
$ sudo ifconfig ppp0 1.1.1.1/30 up

1- on host2 execute the following command(set ip address to 1.1.1.2/30)
$ sudo pppd proxyarp mtu 1280 persist nodeflate noauth lcp-echo-interval 10 crtscts lock 1.1.1.2:1.1.1.1 /dev/ttyS0 115200
$ sudo ifconfig ppp0 1.1.1.2/30 up

No comments:

Post a Comment