Link two Linux system via Serial Port

Why would you want to link two Linux systems via a serial port when a network connection is so fast and easy to configure? The primary purpose is to provide a secure way to maintain your firewall. This project shows you how to hook up two Linux systems via the serial port using point to point protocol (PTPP). The advantage is the ability to establish multiple sessions via the one serial line.


Click here to check out other projects.

Click to search the Acacia site
Click to search using Google

Hardware

The only special thing here is the cable.

Software

You will need the following software:

Ideas

The following ideas may inspire creative use of this project:

Notes

Code

The following configuration should be applied to each PC.

Plug in the null modem cable.

On the client PC (ie PC1), type:
slattach -p slip -s 115200 /dev/ttyS1 &
ifconfig sl0 192.168.0.1 pointopoint 192.168.0.2 up
route add -host 192.168.0.2 dev sl0

On the server PC (ie PC2), type:
slattach -p slip -s 115200 /dev/ttyS0 &
ifconfig sl0 192.168.0.2 pointopoint 192.168.0.1 up
route add -host 192.168.0.1 dev sl0

Now test using the following commands on the client:
ping 192.168.0.2
telnet 192.168.0.2

Click here to check out the list of other projects.

You may also like to click here to check out the list of Artificial Intelligence projects.

If you would like to get any further information on this or any of the other projects shown on this web site, please send an email to Acacia Lateral Technologies. or place a comment in our Guest Book

You might also like to submit your idea to our Free Ideas page for the benefit of other like-minded soles.