Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do I make connection per rs-232 without modems directly

Reply
Thread Tools Display Modes

How do I make connection per rs-232 without modems directly

 
 
Daneel Yaitskov
Guest
Posts: n/a

 
      07-11-2008, 10:14 AM
Hi,


I have two computers and com cable. I am going to make a connection
between them, using the PPP protocol. But I am dashed that all guides
which I already saw gives examples for modem connections. I don't know
what must I write in the chat file, because I haven't any modems. Also I
will be happy any helpful hints about the question.


Daneel
 
Reply With Quote
 
 
 
 
Lew Pitcher
Guest
Posts: n/a

 
      07-11-2008, 04:04 PM
On Jul 11, 6:14*am, Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> wrote:
> Hi,
>
> I have *two computers and com cable. I am going to make a connection
> between them, using the PPP protocol. But I am dashed that all guides
> which I already saw gives examples for modem connections. I don't know
> what must I write in the chat file, because I haven't any modems. Also I
> will be happy any helpful hints about the question.


This can be simple or complicated, depending on *your* setup.

At the simplest, neither serial device is connected to a getty(1), and
you can eliminate the chat script altogether.

At the most complex, one or both serial devices are connected to
getty(1) processes, and your chat script will reflect the necessary
commands to log on and initiate a ppp connection.

Its up to you. Personally, I'd ensure that neither serial device is
run by getty(1), and simply start the ppp daemon on each side,
directed to the local serial device. No chat script at all.
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      07-11-2008, 05:37 PM
Daneel Yaitskov <(E-Mail Removed)> wrote:
> Hi,



> I have two computers and com cable. I am going to make a connection
> between them, using the PPP protocol. But I am dashed that all guides
> which I already saw gives examples for modem connections. I don't know
> what must I write in the chat file, because I haven't any modems. Also I
> will be happy any helpful hints about the question.


What you need depends on what "com cable" means and what OS besides Linux
one of the computers may be running. For a full null-modem cable and
Linux on both computers this should work (without chat):

Computer 1
/usr/sbin/pppd /dev/ttyS1 crtscts 115200 192.168.1.1:192.168.1.2
Computer 2
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200

The passive option was assigned arbitrarily to computer 2 and pppd needs
to be run there first. Substitute for ttyS1 whatever serial device files
your computers use. If the serial device doesn't have at least a 16550A
UART then 115200 may need to be reduced to, e.g., 38400 or 9600.

If you want computer 2 to always be ready to accept a connection then
this bash script may work (untested):

#! /bin/sh
while [ 0 = 0 ]; do
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200
sleep 1
done

For a 3-wire null-modem add the pppd local option and replace crtscts
with xonxoff.

For a NT host to initiate a connection to a Linux host, try starting
the Linux side first but instead of the passive option use

connect "chat -t 0 CLIENT CLIENTSERVER"

so that chat waits (forever) for CLIENT and then sends CLIENTSERVER.

For a Linux host to initiate a connection to a NT host, you probably
just need to add

connect "chat CLIENTSERVER CLIENT"

Cheers-
--
Clifford Kite
/* For PPP debugging in Linux add the line
daemon.*;local2.* /var/log/ppp.log
to /etc/syslog.conf, do "killall -HUP syslogd" to get syslogd to reread
that file, and use the chat -v and pppd debug options. */
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can cable modems be connected directly to a network switch igniteyourlife@optushome.com.au Windows Networking 3 04-22-2007 05:54 AM
keeping ssh connection up with two modems? Andy Linux Networking 2 11-30-2006 07:50 PM
multiple modems to same broadband connection? Andre Broadband 3 02-21-2004 09:08 AM
serial port connection over an old set of modems. NNTP Linux Networking 1 02-16-2004 09:37 PM
Make a new network connection on ME PeterD Windows Networking 6 11-03-2003 07:47 PM



1 2 3 4 5 6 7 8 9 10 11