Linux Commands Examples

A great documentation place for Linux commands


attach a network interface to a serial line

see also : pppd


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

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


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


[-c command]

Execute command when the line is hung up. This can be used to run scripts or re-establish connections when a link goes down.


Enable debugging output. Useful when determining why a given setup doesn’t work.


Exit when the carrier is lost. This works on both /dev/tty and /dev/cua devices by directly monitoring the carrier status every 15 seconds.


Enable verbose output. Useful in shell scripts.


Operate in quiet mode - no messages at all.


Create an UUCP-style lockfile for the device in /var/lock.


Equivalent to the "mesg n" command.


Do not initialize the line into 8 bits raw mode.


Exit right after initializing device, instead of waiting for the line to hang up.


Enable 3 wire operation. The terminal is moved into CLOCAL mode, carrier watching is disabled.

[-p proto]

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 Protocol) 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. For kiss connections the axattach program should be used.

[-s speed]

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, an attempt is made to claim the indicated terminal port, lock it, and open it.


/dev/cua* /var/lock/LCK.*


None known.

see also

axattach, dip pppd , sliplogin.


Fred N. van Kempen, <waltje[:at:][:dot:]org>
Alan Cox, <Alan.Cox[:at:]linux[:dot:]org>
Miquel van Smoorenburg, <miquels[:at:]drinkel.ow[:dot:]org>
George Shearer, <gshearer[:at:]one[:dot:]net>
Yossi Gottlieb, <yogo[:at:][:dot:]il>

How can this site be more helpful to YOU ?

give  feedback