Linux "slattach" Command Line Options and Examples
attach a network interface to a serial line

Slattach is a tiny little program that can be used to put a normal terminal ("serial") line into one of sev‐ eral "network" modes, thus allowing you to use it for point-to-point links to other computers..


Usage:

slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]




Command Line Options:

-c
Execute command when the line is hung up. This can be used to run scripts or re-establish connectionswhen a link goes down.
slattach -c ...
-d]
Enable debugging output. Useful when determining why a given setup doesn't work.
slattach -d] ...
-v]
Enable verbose output. Useful in shell scripts.
slattach -v] ...
-q]
Operate in quiet mode - no messages at all.
slattach -q] ...
-l]
Create an UUCP-style lockfile for the device in /var/lock.
slattach -l] ...
-n]
Equivalent to the "mesg n" command.
slattach -n] ...
-m]
Do not initialize the line into 8 bits raw mode.
slattach -m] ...
-e]
Exit right after initializing device, instead of waiting for the line to hang up.
slattach -e] ...
-L]
Enable 3 wire operation. The terminal is moved into CLOCAL mode, carrier watching is disabled.
slattach -L] ...
-p
Set a specific kind of protocol to use on the line. The default is set to cslip, i.e. compressed SLIP.Other possible values are slip (normal SLIP), adaptive (adaptive CSLIP/SLIP), ppp (Point-to-Point Pro‐tocol) and kiss (a protocol used for communicating with AX.25 packet radio terminal node controllers).The special argument tty can be used to put the device back into normal serial operation. Using 'ppp'mode is not normally useful as ppp requires an additional ppp daemon pppd to be active on the line. Forkiss connections the axattach program should be used.
slattach -p ...
-s
Set a specific line speed, other than the default.If no arguments are given, the current terminal line (usually: the login device) is used. Otherwise, anattempt is made to claim the indicated terminal port, lock it, and open it.FILES/dev/cua* /var/lock/LCK.* /dev/ttyS* /dev/ptmxBUGSNone known.
slattach -s ...