public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* bug in (linux) slattach
@ 2002-09-26  8:49 jb1
  2002-09-26  9:31 ` Harry Kalogirou
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: jb1 @ 2002-09-26  8:49 UTC (permalink / raw)
  To: linux-8086

[-- Attachment #1: Type: TEXT/PLAIN, Size: 777 bytes --]

If you can't ping ELKS from Linux *AT ALL*, it may be a bug in your Linux
installation rather than in ELKS; slattach 1.21 (1999-11-21), which comes
in net-tools 1.56, doesn't seem to set the serial port speed (at least
under Red Hat 7.0). It seems to be necessary to issue the appropriate stty
command *before* the slattach command. Apparently slattach won't *set* the
speed, but does *lock* it! I've attached a script that seems to work.

There's still a problem in ELKS: it responds to each ping, but with a 
"CHECKSUM ERROR", and telnet, ftp, etc. don't connect.

SOURCE PACKAGES:
        elks-0.1.1.tar.gz, elkscmd_20020501.tar.gz, elksnet-0.1.1.tar.gz,
        Dev86src-0.16.0.tar.gz
CVS PATCHES:
        (none)
COMPILED UNDER:
        Red Hat 7.0 Linux, kernel 2.2.16-22

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1167 bytes --]

# slattach 1.21 (1999-11-21), which comes in net-tools 1.56, doesn't seem 
# to set the serial port speed (at least under Red Hat 7.0). It seems to 
# be necessary to issue the appropriate stty command *before* the slattach 
# command; apparently slattach won't *set* the speed, but does *lock* it!

# Set the serial port speed.
# Some versions of stty apparently require this syntax:
# stty 4800 < /dev/ttyS0
/bin/stty -F /dev/ttyS0 4800

# Enable the serial port.
# The "-s 4800" doesn't seem to do any harm, so I left it in.
/sbin/slattach -p slip -L -m -s 4800 /dev/ttyS0 &

# Wait for slattach to take effect before configuring the interface.
# This seems to be necessary for subsequent commands to take effect.
sleep 1

# Configure the interface.
# This would allow 192.168.2.5 to ping/telnet self as 192.168.1.100:
# /sbin/ifconfig sl0 192.168.1.100 pointopoint 192.168.2.5
/sbin/ifconfig sl0 192.168.2.5 pointopoint 192.168.1.100

# The O'Reilly Linux Network Administrator's Guide example also adds a 
# default route. This doesn't seem to be necessary if just two machines 
# connected.
# /sbin/route add default gw 192.168.1.100

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <1034621946.3293.92.camel@cool>]

end of thread, other threads:[~2002-10-15 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26  8:49 bug in (linux) slattach jb1
2002-09-26  9:31 ` Harry Kalogirou
2002-09-26  9:33 ` Harry Kalogirou
2002-09-26 16:37 ` gabucino
2002-09-27 11:06   ` jb1
     [not found] <1034621946.3293.92.camel@cool>
2002-10-15 10:13 ` jb1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox