LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-29-2005, 07:11 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
serial port network connection


Is it possible to connect two computers by a serial cable?

I think it's possible with SLIP, but I'm not sure. I just need to provide internet access to another computer, but their link is a serial cable. Is that possible? *-)

I loaded the slip module on the "internet connected" box, but that didn't create another network interface. I had read that I would have a sl0 interface.
 
Old 10-30-2005, 05:04 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
You can use PPP to establish a connetion between to PCs.
http://www.tldp.org/HOWTO/PPP-HOWTO/direct.html
 
Old 10-31-2005, 08:05 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Hey.. that looks pretty simple! :-) Thanks for the tip... I'll keep it in mind next time I have to do this.

I ended up solving the problem with slattach.

once you run slattach on a given serial port, there will be a new network interface. sl0 in my case.

I had to do something like this:

Client:
Code:
slattach /dev/ttyS0 &
ifconfig sl0 192.168.0.2
route add -host 192.168.0.1 dev sl0
route add default gw 192.168.0.1
server (not taking care of firewall... just routing to the client):
Code:
slattach /dev/ttyS0 &
ifconfig sl0 192.168.0.1
route add -host 192.168.0.2 dev sl0
By the way.... it is a very good idea to change the speed of the serial ports... to something higher that 9600.. but I can't remember what the command for that was.... anyway, the ppp solution seems a lot easier... so you could simply stick with that one.

Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
How to probe if a serial port has a valid connection? RedDrake Linux - General 2 09-01-2005 07:05 PM
setting up com port for serial connection to monitor network switch help murf562 Linux - Hardware 1 10-30-2004 09:46 AM
Detecting connection break on serial port listener on linux neelc20 Programming 6 12-04-2003 01:08 AM
Detecting connection break on serial port listener on linux neelc20 Linux - Newbie 3 11-29-2003 03:29 PM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration