slattach(1M) —
NAME
slattach − attach serial lines as network interfaces
SYNOPSIS
/usr/ucb/slattach [ −d ] [ −f ] [ −m ] ttyname [ baudrate ] [ myname ] [ theirname ]
DESCRIPTION
The slattach command is used to assign a terminal line to a Serial Line Internet Protocol (SLIP) network interface and to define the network source and destination addresses. This must be done on both ends of the terminal line (for example, on both machines that the line connects).
Only root (the superuser) may attach to a slip network interface.
To detach the interface, simply kill the slattach process on both systems.
OPTIONS
−d Debugging is enabled. Various messages are displayed as the program runs.
−f No fork option. Normally, slattach forks a child so that it is run in the background. With the −f option, no child is forked and slattach remains in the foreground.
−m Manual ifconfig. slattach normally sets up the interface automatically. When the −m option is used, it is assumed that the interface is already configured. See ifconfig(1M).
ttyname
a string of the form ttyxx or /dev/ttyxx and the name of the device to use.
baudrate
Used to set the speed of the connection. If not specified or if it is ’−’, a default value of 9600 is assumed.
myname
The host name of this end of the connection. It is passed to ifconfig so that a different IP address can be used for SLIP than is used for any other configured networking interface, for example, TCP/IP. If ’−’ is specified, then the default hostname is used.
theirname
The host name of the other end of the connection. It is passed to ifconfig so that a different IP address can be used for SLIP than is used for any other configured networking interface, for example TCP/IP.
Examples
To connect between port ttyh1 on a machine named ernie and port ttyh2 on a machine named bert at 19200 baud:
ernie: slattach /dev/ttyh1 19200 − bert
bert: slattach /dev/ttyh2 19200 − ernie
If a different IP address should be used on bert, add a new machine name to /etc/hosts with the new IP address on both machines (i.e., bert-slip), then the command would be:
ernie: slattach /dev/ttyh1 19200 − bert-slip
bert:slattach /dev/ttyh2 19200 bert-slip ernie
SEE ALSO
ifconfig(1M), netstat(1), hosts(4).
DIAGNOSTICS
Diagnostics include messages indicating that the specified interface does not exist, the requested address is unknown, or the user is not privileged and has tried to alter an interface’s configuration.
\*U — Version 1.0