Debian Codegraph @

upstream/debian-unstable/man8/slattach.8

raw
1 .TH SLATTACH 8 "2011\-12\-31" "net\-tools" "Linux System Administrator's Manual"
2 .SH NAME
3 slattach \- attach a network interface to a serial line
4 .SH SYNOPSIS
5 .B "slattach [\-dehlLmnqv] [\-c command] [\-p proto] [\-s speed] [tty]"
6 .br
7 .SH DESCRIPTION
8 .B Slattach
9 is a tiny little program that can be used to put a normal terminal
10 ("serial") line into one of several "network" modes, thus allowing
11 you to use it for point-to-point links to other computers.
12 .SH OPTIONS
13 .TP
14 .B tty
15 Path to a serial device like
16 .IR /dev/ttyS* ", " /dev/cua* " or " /dev/ptmx
17 to spawn a new pseudo tty.
18 .TP
19 .B "[\-c command]"
20 Execute
21 .B command
22 when the line is hung up. This can be used to run scripts or re-establish
23 connections when a link goes down.
24 .TP
25 .B "[\-d]"
26 Enable debugging output. Useful when determining why a given
27 setup doesn't work.
28 .TP
29 .B "[\-h]"
30 Exit when the carrier is lost. This works on both /dev/tty and /dev/cua
31 devices by directly monitoring the carrier status every 15 seconds.
32 .TP
33 .B "[\-v]"
34 Enable verbose output. Useful in shell scripts.
35 .TP
36 .B "[\-q]"
37 Operate in quiet mode - no messages at all.
38 .TP
39 .B "[\-l]"
40 Create an UUCP-style lockfile for the device in /var/lock.
41 .TP
42 .B "[\-n]"
43 Equivalent to the "mesg n" command.
44 .TP
45 .B "[\-m]"
46 Do \fBnot\fP initialize the line into 8 bits raw mode.
47 .TP
48 .B "[\-e]"
49 Exit right after initializing device, instead of waiting for the
50 line to hang up.
51 .TP
52 .B "[\-L]"
53 Enable 3 wire operation. The terminal is moved into CLOCAL mode,
54 carrier watching is disabled.
55 .TP
56 .B "[\-p proto]"
57 Set a specific kind of protocol to use on the line. The default
58 is set to
59 .BR "cslip" ,
60 i.e. compressed SLIP. Other possible values are
61 .B "slip"
62 (normal SLIP),
63 .B "adaptive"
64 (adaptive CSLIP/SLIP),
65 .B "ppp"
66 (Point-to-Point Protocol)
67 and
68 .B "kiss"
69 (a protocol used for communicating with AX.25 packet radio terminal node controllers).
70 The special argument
71 .B "tty"
72 can be used to put the device back into normal serial operation.
73 Using 'ppp' mode is not normally useful as ppp requires an additional ppp daemon
74 .B pppd
75 to be active on the line. For kiss connections the
76 .B kissattach
77 program should be used.
78 .TP
79 .B "[\-s speed]"
80 Set a specific line speed, other than the default.
81 .PP
82 If no arguments are given, the current terminal line (usually: the
83 login device) is used. Otherwise, an attempt is made to claim the
84 indicated terminal port, lock it, and open it.
85 .SH FILES
86 .I /dev/cua* /var/lock/LCK.* /dev/ttyS* /dev/ptmx
87 .SH BUGS
88 None known.
89 .SH SEE ALSO
90 .BR kissattach (8),
91 .BR dip (8),
92 .BR pppd (8),
93 .BR sliplogin (8)
94 .SH AUTHORS
95 Fred N. van Kempen, <[email protected]>
96 .br
97 Alan Cox, <[email protected]>
98 .br
99 Miquel van Smoorenburg, <[email protected]>
100 .br
101 George Shearer, <[email protected]>
102 .br
103 Yossi Gottlieb, <[email protected]>
104 .br