Hi again,

        Seems like I'm flooding the mailing list with messages. I know
got IrLAN to work and I'm willing to share with you my wisdom... Of
course, you can bet that I did every mistake that was possible to do,
so I will tell you about it ;-)

        IrLAN as an access option, which can be 1 (direct mode), 2
(peer to peer) and 3 (hosted). Basically, you would use 2 if you
connect to another PC, 1 if you connect to a transparent access point,
and 3 if you are the access point (Dag, correct me if I'm wrong).
        The HP Netbeamer is an access point, but it accept connections
only if the PC is in peer mode. Go figure...

Common :
------
        Both computer, compile kernel with IrDA -> patch-2.2.13-irda4
        (kernel must be configured with kernel module autoloader)
        Compile & install modules
        Install irda-utils-0.9.5
        edit /etc/irda/* (still not really needed here)
        edit /etc/conf.modules (see other e-mail)

PC -> HP NetBeamer :
------------------
        Here is how to hook to the NetBeamer...
        > irattach /dev/ttyS0 -d esi            # That's the one I've got
        At this point, the light of the NetBeamer should flash. If it
doesn't, you may want to play with the slot_timeout value.
        > irmanager -d 1
        > insmod irlan access=2
        > ifconfig irlan0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
        At this point, the light goes solid green. Link is on, you can
ping and everybody is happy. You may want to add a gateway with "route
add default gw ...".

PC -> PC :
--------
        Not everybody has a NetBeamer, so here is a step by step on
how to create a link between two PCs.
        On the first PC :
        > irattach /dev/ttyS0 -d esi            # That's the one I've got
        > irmanager -d 1
        > insmod irlan access=2
        > ifconfig irlan0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255

        On the second PC :
        > irattach /dev/ttyS1                   # Laptop integrated port
        > irmanager -d 1
        > insmod irlan access=2
        > ifconfig irlan0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255

        After that, you should be able to ping and telnet...

Automated ifconfig :
------------------
        By default, /etc/irda/network.opts is not used.
        In the previous example, we ifconfig-ure irlan by hand. If you
have a Red-Hat/Mandrake distribution, irmanager can do the job
automatically at the condition that you create a file
/etc/sysconfig/network-scripts/ifcfg-irlan0 and set the right values
in there... There might be more needed, but I'm not totally expert on
this...
        For other distribution (like Debian), you need to replace the
file /etc/irda/network with possibly something from a Pcmcia package,
and with some editing you might get it to load network.opts...

        You might also want to add in your /etc/conf.modules a "option
irlan access=2". So, if you use modprobe instead of insmod, you won't
have to specify access=2 on the command line.


        Have fun...

        Jean

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to