SLATTACH(8)
β¨ SLATTACH(8) β¨
π NAME
slattach π attach a network interface to a serial line
π¦ SYNOPSIS
slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]
πΈ DESCRIPTION
okay so slattach is a tiny little program but it is iconic π It can put a normal terminal ("serial") line into one of several "network" modes, which means you can use that line for point-to-point links to other computers. no cap, it's giving main character energy π
β¨ OPTIONS β¨
ttyπ§ β the path to a serial device like/dev/ttyS*,/dev/cua*or/dev/ptmx, which spawns a brand new pseudo tty for you.[-c command]π β runcommandwhen the line gets hung up. Super handy for running scripts or re-establishing connections when a link goes down π[-d]π₯ β turns on debugging output. Lowkey essential when you're trying to figure out why a setup isn't working π[-h]π β exit when the carrier is lost. This works on both/dev/ttyand/dev/cuadevices by directly checking the carrier status every 15 seconds β[-v]π«Ά β turns on verbose output. Very useful in shell scripts.[-q]π€« β quiet mode, so no messages at all.[-l]π β creates a UUCP-style lockfile for the device in/var/lock.[-n]π β the same as themesg ncommand.[-m]π β do not initialize the line into 8 bits raw mode.[-e]π¦ β exit right after initializing the device, instead of waiting for the line to hang up.[-L]π· β enables 3 wire operation. The terminal moves into CLOCAL mode and carrier watching is disabled.[-p proto]π β sets a specific protocol to use on the line. The default iscslip(compressed SLIP). Other options areslip(normal SLIP),adaptive(adaptive CSLIP/SLIP),ppp(Point-to-Point Protocol) andkiss(used for talking to AX.25 packet radio terminal node controllers). The special argumentttyputs the device back into normal serial operation.
β οΈ Usingpppmode isn't normally useful, because ppp needs an extra ppp daemon,pppd, to be running on the line. Forkissconnections, you should use thekissattachprogram instead.
[-s speed]β‘ β sets a specific line speed, other than the default.
If no arguments are given, the current terminal line (usually the login device) gets used. Otherwise, slattach tries to claim the terminal port you named, lock it, and open it π
π FILES
/dev/cua* /var/lock/LCK.* /dev/ttyS* /dev/ptmx
π BUGS
None known. π₯Ή
π SEE ALSO
kissattach(8), dip(8), pppd(8), sliplogin(8)
π«Ά AUTHORS
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> Alan Cox, <Alan.Cox@linux.org> Miquel van Smoorenburg, <miquels@drinkel.ow.org> George Shearer, <gshearer@one.net> Yossi Gottlieb, <yogo@math.tau.ac.il>
bestie, that's the whole slattach tea πβ¨ net-tools, dated 2011-12-31, and that's a wrap π π©·
π¦ where this page comes from
- alpine 3.22: net-tools-doc 2.10-r3 Β· GPL-2.0-or-later
- alpine 3.23: net-tools-doc 2.10-r3 Β· GPL-2.0-or-later
- alpine 3.24: net-tools-doc 2.10-r3 Β· GPL-2.0-or-later
- arch rolling: net-tools 2.10-3 Β· GPL2
- debian bookworm: net-tools 2.10-0.1+deb12u2 Β· GPL-2.0-or-later
- debian trixie: net-tools 2.10-1.3 Β· GPL-2.0-or-later
- nixpkgs unstable: net-tools 2.10
- opensuse-leap 16.0: net-tools 2.10-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: net-tools 2.10-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: net-tools 2.10-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: net-tools 2.10-160000.4.1 Β· GPL-2.0-or-later
- ubuntu noble: net-tools 2.10-0.1ubuntu4 Β· GPL-2.0-or-later
- ubuntu noble: net-tools 2.10-0.1ubuntu4.4 Β· GPL-2.0-or-later
- ubuntu questing: net-tools 2.10-1.3ubuntu2 Β· GPL-2.0-or-later
- ubuntu resolute: net-tools 2.10-2ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: net-tools 2.10-2ubuntu1 Β· GPL-2.0-or-later
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms