Le 07.04.2004 09:36, debian a �crit�:
Le Wed, 07 Apr 2004 01:33:25 +0200 , Fran�ois , prit sa plume pour
�crire:

Le 12514i�me jour apr�s Epoch,
[EMAIL PROTECTED] �crivait:

effectivement , pourquoi ne ps essayer une connection parall�le plip?
que faut-il faire pour que ca marche, je n'ai jamais essayer cela?

J'avais utilis� PLIP il y a quelques ann�es entre un P200 et un IBM 386sx (70Mo de disque dur !!).

Il faut un c�ble parrall�le pr�vu pour cet usage et avoir de chaque cot� un noyau configur� avec le support plip.

J'avais cr�� une paire de scripts pour lancer plip sur les deux machines. Ils n�cessitent sans doute � �tre adapt�s.

Voici les scripts en question :

Cot� pentium, j'avais :

#!/bin/sh

# Version of Linux

VERSION=`uname -r | cut -c -3`
if [ $VERSION = 2.0 ]
then
    PLIP=plip1
else
    PLIP=plip0
fi
    modprobe $PLIP

NET_MASK=255.255.255.0
NET_ADDRESS=localnet
LOCAL_HOST=pentium
REMOTE_HOST=notebook

case "$1" in
 start)
    echo "Network address : "$NET_ADDRESS
    echo "Local system    : "$LOCAL_HOST
    echo "Remote system   : "$REMOTE_HOST

    echo "Starting plip network."

    ifconfig $PLIP arp $LOCAL_HOST pointopoint $REMOTE_HOST up
    ifconfig $PLIP netmask $NET_MASK

    if [ $VERSION = 2.0 ]; then
#     echo "adding route -net"
#         route add -net $NET_ADDRESS netmask $NET_MASK
#        echo "adding route remote"
        route add $REMOTE_HOST
    fi

    plipconfig $PLIP nibble 40000 trigger 5000  >/dev/null
    echo "Done."
  ;;
 stop)
    echo -n "Stopping plip network..."
    ifconfig $PLIP $LOCAL_HOST pointopoint $REMOTE_HOST down
    rmmod plip 2>/dev/null
    echo "Done."
    ;;
 *)
    echo "Usage: ./resplip {start|stop}"
    exit 1
esac

exit 0


Et son pendant du cot� du notebook :

#!/bin/sh

# Version of Linux

VERSION=`uname -r | cut -c -3`
if [ $VERSION = 2.0 ]
then
    PLIP=plip1
else
    PLIP=plip0
fi

NET_MASK=255.255.255.0
NET_ADDRESS=localnet
LOCAL_HOST=notebook
REMOTE_HOST=pentium

case "$1" in
 start)
    echo "Network address : "$NET_ADDRESS
    echo "Local system    : "$LOCAL_HOST
    echo "Remote system   : "$REMOTE_HOST

    echo "Starting plip network."

    ifconfig $PLIP arp $LOCAL_HOST pointopoint $REMOTE_HOST up
    ifconfig $PLIP netmask $NET_MASK

    if [ $VERSION = 2.0 ]; then
#     echo "adding route -net"
#         route add -net $NET_ADDRESS netmask $NET_MASK
#        echo "adding route remote"
        route add $REMOTE_HOST
    fi

    echo "Done."
  ;;
 stop)
    echo -n "Stopping plip network..."
    ifconfig $PLIP $LOCAL_HOST pointopoint $REMOTE_HOST down
    rmmod plip 2>/dev/null
    echo "Done."
    ;;
 *)
    echo "Usage: ./resplip {start|stop}"
    exit 1
esac

exit 0


--
                - Jean-Luc



en tout cas merci de votre aide.


Attachment: pgp1E0B343WpN.pgp
Description: PGP signature

Répondre à