FreeBSD 2.X についての FAQ (よくある質問とその答え) : インストール : パラレルライン (PLIP) 経由でふたつの FreeBSD box を接続したい
Previous: あれ! テープからインストールできません!
Next: ラップトップ PC に PLIP (パラレルライン IP) 経由でインストールできますか?

2.13. パラレルライン (PLIP) 経由でふたつの FreeBSD box を接続したい

Laplink パラレルケーブルを用意してください. 両方の PC の kernel に lpt ドライバが組み込まれていることを確認してください.

      $ dmesg | grep lp
      lpt0 at 0x378-0x37f irq 7 on isa
      lpt0: Interrupt-driven port
      lp0: TCP/IP capable interface
      

パラレルインタフェースに Laplink パラレルケーブルを接続します.

root になって両方で lp0 のネットワークインタフェースパラメータを設定します. 例えば, ホスト max と moritz を接続したい場合,

                 max <-----> moritz
IP Address    10.0.0.1      10.0.0.2
      

max 側で次のようにして

	# ifconfig lp0 10.0.0.1 10.0.0.2
     

moritz 側でも

	# ifconfig lp0 10.0.0.2 10.0.0.1
     
のようにします.

以上です! lp(4) と lpt(4) のマニュアルページも参照してください.

また, /etc/hosts にホストの追加もしましょう.

     127.0.0.1               localhost.my.domain localhost 
     10.0.0.1                max.my.domain max
     10.0.0.2                moritz.my.domain moritz
     

動作確認は次のようにします:

max 側:

$ ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 

$ netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
moritz              max              UH          4   127592       lp0

$ ping -c 4 moritz
PING moritz (10.0.0.2): 56 data bytes
64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms

--- moritz ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms


FreeBSD 2.X についての FAQ (よくある質問とその答え) : インストール : パラレルライン (PLIP) 経由でふたつの FreeBSD box を接続したい
Previous: あれ! テープからインストールできません!
Next: ラップトップ PC に PLIP (パラレルライン IP) 経由でインストールできますか?