Date: Wed, 27 May 1998 22:46:46 -0700 (PDT) From: Julian Elischer <julian@whistle.com> To: Purwanto Nugroho <purwanto@te.ugm.ac.id> Cc: freebsd-questions@FreeBSD.ORG, purwanto@hotmail.com Subject: Re: FreeBSD <--> Linux PLIP connection Message-ID: <Pine.BSF.3.95.980527224222.4245A-100000@current1.whistle.com> In-Reply-To: <Pine.LNX.3.96.980528120638.11064A-100000@server.te.ugm.ac.id>
next in thread | previous in thread | raw e-mail | index | archive | help
from tne man page for the lpt port lp interface,
you need the link0 flag to ifconfig
(see below)
man 4 lp
LP(4)        FreeBSD Kernel Interfaces Manual (i386 Architecture)
LP(4)
NAME
     lp - printer port Internet Protocol driver
SYNOPSIS
     ifconfig lp0 myaddress hisaddress [-link0]
         device lpt0 at isa? port? tty irq 7 vector lptintr
DESCRIPTION
     The lp driver allows a PC parallel printer port to be used as a
point-to-
     point network interface between two similarly configured systems. 
Data
     is transferred 4 bits at a time, using the printer status lines for
in-
     put: hence there is no requirement for special bidirectional hardware
and
     any standard AT-compatible printer port with working interrupts may
be
     used.
     The lp driver is implemented as an integral part of the lpt driver,
and
     will automatically be present in a kernel configured with Internet
sup-
     port and at least one lpt device.  During the boot process, for each
lpt
     printer device which is probed and has an interrupt assigned, a
corre-
     sponding lp network device is created.  Available devices are
announced
     with a message such as:
           lp0: TCP/IP capable interface
[...]
     The communication protocol is selected by the link0 flag:
     -link0      (default) Use FreeBSD mode (LPIP).  This is the simpler
of
                 the two modes and therefore slightly more efficient.
     link0       Use Crynwr/Linux compatible mode (CLPIP).  This mode has
a
                 simulated ethernet packet header, and is easier to
interface
                 to other types of equipment.
On Thu, 28 May 1998, Purwanto Nugroho wrote:
> Hi..:)
> 
> I wanna ask you about PLIP connection.
> 
> I've installed FreBSD 2.2.6 on my desktop and want to connect it
> to my Linux notebook via PLIP.
> 
> I have no problem connection Linux <--> Linux  with PLIP
> 
> but when i try to connect it via PLIP it didn't work.
> 
> i dont use any ethernet card on my desktop.
> 
> i simply executing command:
> ifconfig lp0  my.desktop.ipaddr my.notebook.ipaddr
> 
> and ifconfig -a   is:
> 
> lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet my.desktop.ipaddr --> my.notebook.ipaddr netmask 0xffffff00
> 
> netstat -rn  is:
> Destination        Gateway            Flags     Refs     Use     Netif
> my.notebook.ipaddr my.desktop.ipaddr  UH          0      0       lp0
> 
> 
> 
> On my Linux notebok i simply executing commands:
> 
> ifconfig plip1 my.notebook.ipaddr pointopoint my.dekstop.ipaddr netmask
> 255.255.255.0
> 
> my route command:
> route add my.notebook.ipaddr plip1
> route add my.desktop.ipaddr  plip1
> 
> route   is:
> Destination     Gateway         Genmask         Flags Ref    Use  Iface
> my.dekstop.ipaddr  *            255.255.255.255 UH    0      0    plip1
> my.notebook.ipaddr *            255.255.255.255 UH    0      0    plip1
> 
> 
> 
> but the setting i did above didn't establish the connection between
> my Linux & FreeBSD.
> 
> I use standar PLIP cable... i've used it many times to connect 
> linux <--> linux
> 
> Is there anything wrong with my setting? or maybe the PLIP cable config 
> for FreeBSD is different from PLIP cable for Linux?
> 
> 
> please help me to solve this problem.
> 
> 
> Thank you very much in Andvance.. :)
> 
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>   Purwanto Nugroho
>   purwanto@te.ugm.ac.id
>   purwanto@hotmail.com
>   EleCtRicAl.EngIneErInG@GadJah.MadA.UnVerSItY.YogYAkArtA
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980527224222.4245A-100000>
