SLATTACH(8) SLATTACH(8)
名前
slattach - ネットワークインターフェースをシリアルラインにアタッチする
書式
slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]
説明
slattach は 小さなプログラムで、は通常の端末回線 (「シリアルライン」)
を、ある種の「ネットワーク」モードで動作できるようにする。これによっ て
他のコンピュータとの point-to-point の接続が可能になる。
オプション
[-c command]
接 続が切断されたときに command を実行する。リンクが落ちたときに
スクリプトを実行し、接続を再確立するのに利用できる。
[-d] デバッグ出力を有効にする。与えた設定が動作しない理由を調べるのに
便利。
[-h] キャリアが失われたら終了する。 /dev/tty と /dev/cua 両デバイスで
、 15 秒おきに直接キャリアの状態をモニターすることによって動作す
る。
[-v] 詳細な出力を有効にする。シェルスクリプトに便利。
[-q] 無言モードで動作する。全くメッセージを表示しない。
[-l] UUCP スタイルの、デバイスのロックファイルを /var/lock に作成する
。
[-n] "mesg n" コマンドと等価。
[-m] ラインを 8 ビット raw モードに初期化しない。
[-e] デバイスを初期化したらすぐに終了する。通常の動作ではラインの切断
を待つ。
[-L] 3 線動作 (3 wire opearation) を有効にする。端末を CLOCAL モード
に移行し、キャリア監視を無効にする。
(訳注: 3 線動作とは、おそらく (Rx,Tx,GND) の 3 本の信号線で通 信
することでしょう)
[-p proto]
ラ イ ン に 用いるプロトコルを特定のものに指定する。デフォルトは
cslip すなわち compressed SLIP である。他に指定可能な値 に は 、
slip (normal SLIP), adaptive (CSLIP/SLIP 自動認識), ppp (Point-
to-Point プロトコル), kiss (AX.25 パケット無線端末のノードコント
ロ ー ラを用いて通信するプロトコル) などである。特殊な指定に tty
があり、これはデバイスを通常のシリアル動作に戻す。 ’ppp’ モー ド
を用いるのは通常は良くない。 ppp では、別に ppp デーモン pppd を
ラインでアクティブにする必要があるからである。 kiss 接続に は 、
axattach プログラムを用いるほうが良い。
[-s speed]
デフォルト以外の接続速度を指定する。
引 数をひとつも与えないと、現在の端末回線 (通常はログインデバイス) を用
いる。引数を与えた場合は、その端末ポートを要求し、ロックし、オープン し
ようとする。
ファイル
/dev/cua* /var/lock/LCK.*
バグ
今のところない。
関連項目
axattach(8), dip(8), pppd(8), sliplogin(8)
著者
Fred N. van Kempen,
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
Slattach is a tiny little program that can be used to put a normal ter-
minal ("serial") line into one of several "network" modes, thus allow-
ing you to use it for point-to-point links to other computers.
OPTIONS
[-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.
[-d] Enable debugging output. Useful when determining why a given
setup doesn’t work.
[-h] 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. [-v] Enable verbose output. Useful in shell
scripts.
[-q] Operate in quiet mode - no messages at all.
[-l] Create an UUCP-style lockfile for the device in /var/lock.
[-n] Equivalent to the "mesg n" command.
[-m] Do not initialize the line into 8 bits raw mode.
[-e] Exit right after initializing device, instead of waiting for the
line to hangup.
[-L] 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 communi-
cating 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 use-
ful 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.
FILES
/dev/cua* /var/lock/LCK.*
BUGS
None known.
SEE ALSO
axattach(8), dip(8) pppd(8), sliplogin(8).
AUTHORS
Fred N. van Kempen,
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa