2 つのホストを直結するには、ヌルモデム構成を使用します。この構成は、モデムを必要としません。この構成に使用できるヌルモデムケーブルについては、付録 B 「モデムケーブルとヌルモデムケーブル」 を参照してください。
この例では、2 つの非同期ヌルモデム接続によって、クライアント lab0251-ppp と lab0252-ppp がサーバーと接続されています。link.conf ファイルの modem キーワードを常に none に設定し、ダミー電話番号をサーバーに割り当てます。
このバージョンでは、電話番号をまったく使用しない場合にも、非同期接続を開始するための電話番号を必ず指定する必要があるという制限があります。
lab0251-ppp の PPP 構成ファイル (ppp.conf)
ifconfig ipdptp0 plumb ifconfig ipdptp0 lab0251-ppp server netmask 255.255.255.0 down dialup_path ip_interface ipdptp0 remote_host server inactivity_timeout 120 |
lab0251-ppp のリンク構成ファイル (link.conf)
dialup_device pppdev0 unix_device ttya line_speed 38400 modem none call_setup dial remote_host server phone 1001 chat_script server.script |
lab0251-ppp が server への発信に使用する CHAT スクリプト (server.script)
# Set the line regarding the remote site configuration # Due to UUCP limitations some systems only accept cs7 # # setline cs7 parodd send RETURN expect "ogin:" 10 onerror send BREAK repeat 3 send "lab0251" expect "word: " 40 # # Set the ppp password of the remote host here # send "lab0251-pass" |
lab0252-ppp の PPP 構成ファイル (ppp.conf)
ifconfig ipdptp0 plumb ifconfig ipdptp0 lab0252-ppp server netmask 255.255.255.0 down dialup_path ip_interface ipdptp0 remote_host server inactivity_timeout 120 |
lab0252-ppp のリンク構成ファイル (link.conf)
dialup_device pppdev0 unix_device ttya line_speed 38400 modem none call_setup dial remote_host server phone 1001 chat_script server.script |
lab0252-ppp が server への発信に使用する CHAT スクリプト (server.script)
# Set the line regarding the remote site configuration # Due to UUCP limitations some systems only accept cs7 # # setline cs7 parodd send RETURN expect "ogin:" 10 onerror send BREAK repeat 3 send "lab0252" expect "word: " 40 # # Set the ppp password of the remote host here # send "lab0252-pass" |
server の PPP 構成ファイル (ppp.conf)
ifconfig ipdptp0 plumb ifconfig ipdptp0 server lab0251-ppp netmask 255.255.255.0 down ifconfig ipdptp1 plumb ifconfig ipdptp1 server lab0252-ppp netmask 255.255.255.0 down dialup_path ip_interface ipdptp0 expect_login_id lab0251 inactivity_timeout 0 dialup_path ip_interface ipdptp1 expect_login_id lab0252 inactivity_timeout 0 |
server のリンク構成ファイル (link.conf)
dialup_device pppdev unix_device tty0 line_speed 38400 modem none call_setup answer dialup_device pppdev1 unix_device tty1 line_speed 38400 modem none call_setup answer |