xref: /original-bsd/sbin/slattach/slattach.8 (revision 6f4def95)
1.\" Copyright (c) 1986, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)slattach.8	8.2 (Berkeley) 04/01/94
7.\"
8.Dd
9.Dt SLATTACH 8
10.Os BSD 4.3
11.Sh NAME
12.Nm slattach
13.Nd attach serial lines as network interfaces
14.Sh SYNOPSIS
15.Nm Slattach
16.Ar ttyname Op Ar baudrate
17.Sh DESCRIPTION
18.Nm Slattach
19is used to assign a tty line to a network interface,
20and to define the network source and destination addresses.
21The following operands are supported by
22.Nm slattach :
23.Bl -tag -width Ar
24.It Ar ttyname
25Specifies the name of the tty device.
26.Ar Ttyname
27should be a string of the form
28.Ql ttyXX ,
29or
30.Ql /dev/ttyXX .
31.It Ar baudrate
32Specifies the speed of the connection. If not specified, the
33default of 9600 is used.
34.El
35.Pp
36Only the super-user may attach a network interface.
37.Pp
38To detach the interface, use
39.Dq Li ifconfig interface-name down
40after killing off the
41.Nm slattach
42process.
43.Ar Interface-name
44is the name that is shown by
45.Xr netstat 1
46.Sh EXAMPLES
47.Bd -literal -offset indent -compact
48slattach ttyh8
49slattach /dev/tty01 4800
50.Ed
51.Sh DIAGNOSTICS
52Messages indicating the specified interface does not exit, the
53requested address is unknown, the user is not privileged and
54tried to alter an interface's configuration.
55.Sh SEE ALSO
56.Xr netstat 1 ,
57.Xr netintro 4 ,
58.Xr ifconfig 8 ,
59.Xr rc 8
60.Sh HISTORY
61The
62.Nm
63command appeared in
64.Bx 4.3 .
65