Re: rsync fails to connect on kernel 2.6.10 over plip

2005-07-19 Thread hacker (of golf)
On 5/23/05, hacker [EMAIL PROTECTED] wrote:
 Is anyone successfully using rsync on kernel-2.6.10?  What did you
 have to do to make it work?

For the record, this has been solved.  The problem was that when I was
loading the modules (parport, parport_pc and plip), I was specifying a
specific irq and address with the parport_pc that 2.6.x did not
recognize.  Now, I just modprobe parport_pc (no variables) and it
works.

Bye,



rsync fails to connect on kernel 2.6.10 over plip

2005-05-23 Thread hacker
I've successfully used rsync (2.6.4-6) to transfer files over a plip
connection via a cable connecting the parallel ports of my desktop and
laptop, using kernel 2.4.27.

Now, I'm trying to use kernel 2.6.10 and rsync won't establish a connection.

root #: rsync mydesktop::
rsync: failed to connect to mydesktop: Connection refused (111)
rsync error: error in socket IO (code 10 at clientserver.c(99)

I'm guessing the problem is the ipv6 in 2.6.10.  For 2.6.10, ifconfig
shows an inet6 line that isn't there under 2.4.27:

under 2.4.27:

plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
  inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:7 Base address:0x378

with 2.6.10:

plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
  inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
  inet6 addr: fe80::fefc:c0ff:fea8:101/64 Scope:Link
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:7 Base address:0x378

In fact, I can't even ping with this.  So, I thought I'd try to
disable ipv6 on this link.  I added 'del 192.168.1.2' at the end of my
ifconfig to disable ipv6 (per man ifconfig) and now get:

root #: ifconfig

plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
  inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
  inet6 addr: fe80::fefc:c0ff:fea8:101/64 Scope:Link
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:7 Base address:0x378

plip0:0   Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
  inet addr:192.168.1.2  P-t-P:192.168.1.2  Mask:255.255.255.0
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  Interrupt:7 Base address:0x378

Apparently, the plip0:0 listing is the subtraction of ipv6.  Now I can
successfully ping:

root :~# ping -c1 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.144 ms

--- 192.168.1.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.144/0.144/0.144/0.000 ms

'man rsync' says to add '-4' to the options to get the daemon use
ipv4, and I did this in /etc/defaults/rsync and it works:

root :~# ps aux |grep rsync
root  8349  0.0  0.3   1912   672 ?Ss   11:02   0:00
/usr/bin/rsync --no-detach --daemon --config/etc/rsyncd.conf -4

However, when I try rsync with or without the '-4' option, on my
laptop, it still fails:

root #: rsync -4 mydesktop::
rsync: failed to connect to mydesktop: Connection refused (111)
rsync error: error in socket IO (code 10 at clientserver.c(99)

I went back to my original ifconfig, and tried rsync with the '-6'
option, but it also failed.

Anyone have any suggestions?

Is anyone successfully using rsync on kernel-2.6.10?  What did you
have to do to make it work?

TIA



installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread bobbydjo
Bonjour et bon dimanche!

J'essaie d'installer une sarge sur un vieux portable (16M de ram, 1,8G
DD, pas de carte réseau, lecteur cd défaillant, lecteur disquette
externe fonctionnel).

J'aimerai y mettre un noyau 2.6 . Or l'image boot.img à dd sur une
disquette ne permet pas de booter sur un 2.6. (seuls choix: linux et
expert, aucun en 2.6). 

Stratégie imaginée: installer un système de base puis le reste via une
connexion plip avec mon serveur (puisque le lecteur CD ne veut plus
monter le CD 1 de sarge.. d'où l'intérêt d'essayer avec un noyau
2.6.. pour voir.)

Donc mes questions:
1)existe-t-il une image boot.img avec le 2.6 pour sarge? 
3)est-il possible de créer une connexion plip lors de l'installation?
2)lors d'une connexion plip, comment fait pour que le portable puisse
accéder le grand net? un ping www.debian.org me donne 'network
unreacheable'. sur le serveur j'ai une règle de masquerading qui
laisse tout passer dans les deux sens, dois-je faire autre chose?
(règle: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE).

bon voilà en vrac mes soucis du jour.

Merci pour toute suggestion.

S.



Re: installation sarge + noyau 2.6 + disquette - carte rseau + plip

2004-08-15 Thread Jean-Michel OLTRA

bonjour,


Le dimanche 15 août 2004, bobbydjo a écrit...


   2)lors d'une connexion plip, comment fait pour que le portable puisse
 accéder le grand net? un ping www.debian.org me donne 'network
 unreacheable'. sur le serveur j'ai une règle de masquerading qui
 laisse tout passer dans les deux sens, dois-je faire autre chose?
 (règle: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE).

activer le forwarding ?


-- 
jm



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread bobbydjo
Le dimanche 15 aoû 2004 à 11 h 13, Jean-Michel prit sa plus fine plume
pour écrire:

 
 bonjour,
 
 
 Le dimanche 15 août 2004, bobbydjo a écrit...
 
 
  2)lors d'une connexion plip, comment fait pour que le portable
  puisse
  accéder le grand net? un ping www.debian.org me donne 'network
  unreacheable'. sur le serveur j'ai une règle de masquerading qui
  laisse tout passer dans les deux sens, dois-je faire autre chose?
  (règle: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE).
 
 activer le forwarding ?

sur le serveur c'est fait. faut le faire aussi sur le portable?

merci

 
 
 -- 
 jm
 
 
 -- 
 Pensez à lire la FAQ de la liste avant de poser une question :
 http://wiki.debian.net/?DebianFrench
 
 Pensez à rajouter le mot ``spam'' dans vos champs From et
 Reply-To:
 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 
 



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread sich

bobbydjo a écrit :

Donc mes questions:
	1)existe-t-il une image boot.img avec le 2.6 pour sarge? 


Tout ce que je sais c'est qu'avec la netinstall de sarge tu peux choisir 
d'installer un noyau 2.6 (cd de 100Mo).



3)est-il possible de créer une connexion plip lors de l'installation?


aucune idée.


2)lors d'une connexion plip, comment fait pour que le portable puisse
accéder le grand net? un ping www.debian.org me donne 'network
unreacheable'. sur le serveur j'ai une règle de masquerading qui
laisse tout passer dans les deux sens, dois-je faire autre chose?
(règle: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE).


Ton client est bien config au niveaur réseau ? Passerelle par défaut, 
serveurs dns, etc.. ?



bon voilà en vrac mes soucis du jour.

Merci pour toute suggestion.

S.


Je ne pense pas t'aider bcp avec ça, mais espérons que ce soit utile..

sich



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread J.Pierre Pourrez
Le 15/08/04 à 12:17, sich écrivait:

 Ton client est bien config au niveaur réseau ? Passerelle par défaut, 
 serveurs dns, etc.. ?

Le mieux est d'installer un serveur DHCP sur le serveur et de paramétrer
le portable (client) avec une adresse IP dynamique.
Ca règle d'un coup, adresse IP, masque réseau, serveur DNS, passerelle.

Sur ce coup là, j'aime bien *dnsmasq* qui fait serveur DHCP et cache pour
le serveur DNS.

Bon amusement
Jean-Pierre



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread J.Pierre Pourrez
Le 15/08/04 à 11:32, bobbydjo écrivait:

 sur le serveur c'est fait. faut le faire aussi sur le portable?
Non. Le portable n'en a pas besoin.
Il doit juste connaitre la porte de sortie vers Internet (IP du serveur)
et accessoirement l'adresse d'un serveur DNS si tu donnes les noms des
serveurs Debian à la place de leur adresse IP.

 merci
Avec plaisir,
Jean-Pierre



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread bobbydjo
Le dimanche 15 aoû 2004 à 13 h 03, J.Pierre prit sa plus fine plume
pour écrire:

 Le 15/08/04 à 11:32, bobbydjo écrivait:
 
  sur le serveur c'est fait. faut le faire aussi sur le portable?
 Non. Le portable n'en a pas besoin.

c'est bien ce que je pensais.

 Il doit juste connaitre la porte de sortie vers Internet (IP du
 serveur) et accessoirement l'adresse d'un serveur DNS si tu donnes
 les noms des serveurs Debian à la place de leur adresse IP.
 

je lui ai fixé l'ip 192.168.4.2 pour plip0 et 192.168.4.1 pour plip0
sur le serveur. j'arrive pinguer sur le serveur mais avec des ttl de
6ms.. (io=0x378 irq=7 précisé sur le portable, ça marchait bien entre
2 portables). Et j'ai eth0 en 192.168.2.2 pour le serveur (sur le
modem).

donc là normalement c'est bon non? j'ai aussi 

search
nameserver 192.168.1.1 

dans /etc/resolv.conf

qui correspond au modem. Et avec cette config, je peux très bien
pinguer à l'extérieur sur un autre portable lié via câble croisé.





  merci
 Avec plaisir,

encore merci!

 Jean-Pierre



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread sich

bobbydjo a écrit :

je lui ai fixé l'ip 192.168.4.2 pour plip0 et 192.168.4.1 pour plip0
sur le serveur. j'arrive pinguer sur le serveur mais avec des ttl de
6ms.. (io=0x378 irq=7 précisé sur le portable, ça marchait bien entre
2 portables). Et j'ai eth0 en 192.168.2.2 pour le serveur (sur le
modem).

donc là normalement c'est bon non? j'ai aussi 


search
nameserver 192.168.1.1 


dans /etc/resolv.conf


tu as précisé la passerelle ? Param gateway... Et si tu fais un ping 
nom dns extérieur il arrive à résoudre le nom en ip ?


sich

Voici un exemple chez moi, a adapter pour chez toi :

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian 
installation

# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254



Re: installation sarge + noyau 2.6 + disquette - carte réseau + plip

2004-08-15 Thread bobbydjo
Le dimanche 15 aoû 2004 à 14 h 00, sich prit sa plus fine plume pour
écrire:

 bobbydjo a écrit :
  je lui ai fixé l'ip 192.168.4.2 pour plip0 et 192.168.4.1 pour
  plip0 sur le serveur. j'arrive pinguer sur le serveur mais avec
  des ttl de 6ms.. (io=0x378 irq=7 précisé sur le portable, ça
  marchait bien entre 2 portables). Et j'ai eth0 en 192.168.2.2 pour
  le serveur (sur le modem).
  
  donc là normalement c'est bon non? j'ai aussi 
  
  search
  nameserver 192.168.1.1 
  
  dans /etc/resolv.conf
 
 tu as précisé la passerelle ? Param gateway... Et si tu fais un ping
 
 nom dns extérieur il arrive à résoudre le nom en ip ?

nan ni en nom ni en ip.

 
 sich
 
 Voici un exemple chez moi, a adapter pour chez toi :
 
 # /etc/network/interfaces -- configuration file for ifup(8),
 ifdown(8)
 
 # The loopback interface
 auto lo
 iface lo inet loopback
 
 # The first network card - this entry was created during the Debian 
 installation
 # (network, broadcast and gateway are optional)
 auto eth0
 iface eth0 inet static
  address 10.0.0.1
  netmask 255.255.255.0
  network 10.0.0.0
  broadcast 10.0.0.255
  gateway 10.0.0.254
 

comme cette config ne me sert que pour cette fois (installation de
la base et de 2-3 applis de texte), je charge les modules et définit
plip0 à la main; pas besoin pour ça de
renseigner /etc/network/interfaces.

merci quand même



Re: plip entre deux portables

2004-04-14 Thread debian
Le Tue, 13 Apr 2004 19:49:14 +0100 , Yves , prit sa plume pour écrire:

 On Tue, Apr 13, 2004 at 06:22:00PM +0200, François TOURDE wrote:
   modprobe  io=0x37b irq=7 parport_pc
 
 C'est curieux, dans mon vieux script de plip j'ai io=0x378
 (valeur calculée en utilisant la pression atmosphérique du
 jour, multipliée par la phase de la lune, modulo l'age du
 capitaine. Ou bien pechée dans un vieux bouquin genre Bible
 PC (h la bible PC...) ou le BIOS).


oui t'as raison, j'ai modifié l'adresse io en 0x378 mais ca ne change
rien... le ping ne passe pas.

j'ai pris cette valeur dans le fichier /proc/ioports sur le portable
branché sur le net. Mais quand j'essaie la meme chose sur l'autre
portable, le vieux, je n'ai pas de ligne correspondante... et dans le
meme ordre d'idée, un 'lspci' donne une erreur..

Est-ce que des versions différentes de plip (noyau) pourraient etre le
pb? 


Comment je vais faire pour m'en sortir?


merci.



Re: plip entre deux portables [résolu]

2004-04-14 Thread debian
et ben, ..., c'était le cable, qui n'était pas croisé!!

merci a tous.



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
maintenant que j'ai une connexion entre mes portables, j'aimerais
pouvoir utiliser dselect directement sur le net.

j'ai crée un fichier /etc/resolv.conf avec

search
nameserver 192.168.1.1

qui est l'adresse du modem, derrière mon serveur d'adresse
192.168.2.2.

Or je n'arrive pas à pinguer sur l'internet.

qu'est-ce que j'ai oublié?


merci 



Re: plip entre deux portables + ping internet

2004-04-14 Thread Yves Rutschle
On Wed, Apr 14, 2004 at 11:58:35AM +0200, debian wrote:
 j'ai crée un fichier /etc/resolv.conf avec
 
 search
 nameserver 192.168.1.1

Y'a-t-il un vrai serveur de nom là? (genre bind, dnsmasq ou
autre)

 qui est l'adresse du modem, derrière mon serveur d'adresse
 192.168.2.2.

Ton modem a une adresse?

 Or je n'arrive pas à pinguer sur l'internet.

Est-ce que tu résoud les noms pour commencer (avec dig).

 qu'est-ce que j'ai oublié?

Sans doute quelque chose du genre `apt-get install ipmasq` sur
la machine du milieu.

Y.



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
en gros voici ma config:


modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
|
|
portable no1 : 192.168.2.3
|
|
|
portable no2 : 192.168.2.4

avec aucun serveur de nom.




Le Wed, 14 Apr 2004 11:10:58 +0100 , Yves , prit sa plume pour écrire:

 On Wed, Apr 14, 2004 at 11:58:35AM +0200, debian wrote:
  j'ai crée un fichier /etc/resolv.conf avec
  
  search
  nameserver 192.168.1.1
 
 Y'a-t-il un vrai serveur de nom là? (genre bind, dnsmasq ou
 autre)
 
  qui est l'adresse du modem, derrière mon serveur d'adresse
  192.168.2.2.
 
 Ton modem a une adresse?
 

  Or je n'arrive pas à pinguer sur l'internet.
 
 Est-ce que tu résoud les noms pour commencer (avec dig).


je ne connais pas très bien cette commande, mais si je fait un dig
depuis le portable no2

# dig pontapreta   # nom du portable no1 et inscrit dans /etc/hosts 
 # de chacune des machines

;  Dig 9.2.1 pontapreta
;; global options; printcmd
;; connection timed out; no server could be reached


voilà.

 
  qu'est-ce que j'ai oublié?
 
 Sans doute quelque chose du genre `apt-get install ipmasq` sur
 la machine du milieu.
 

si je comprends bien, je dois installer iptables sur portable no1 et
activer le masquerading avec un truc du genre:

echo 1  /proc/sys/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



Juste? je ne suis pas un pro en iptables, j'ai juste mis cette règle
sur mon serveur pour avoir l'accès au net depuis mon portable no1.


merci



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
bon j'ai continué mon aventure par l'activation de la règle iptables:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

et un 'iptables -L -v -t nat' donne:

Chain PREROUTING (policy ACCEPT 804 packets, 67536 bytes)
 pkts bytes target prot opt in out source  
destination
 
Chain POSTROUTING (policy ACCEPT 2 packets, 200 bytes)
 pkts bytes target prot opt in out source  
destination
  342 20926 MASQUERADE  all  --  anyeth0anywhere
anywhere
 
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source  
destination


Maintenat si j'essaie un traceroute du portable no2 sur le serveur:

traceroute: Warning: findsaddr: netlink error: Network is unreachable
traceroute: Warning: ip checksums disabled
traceroute to 192.168.2.2 (192.168.2.2), 30 hops max, 38 byte packets
traceroute: sendto: Network is unreachable
 1 traceroute: wrote 192.168.2.2 38 chars, ret=-1


... comprends pas; normalement avec la règle ci-dessus le portable no1
devrait etre transparent pour le no2, non? ou peut-etre manque-t-il
encore une règle?


un peu d'aide serait la bienvenue, merci!



Le Wed, 14 Apr 2004 12:47:17 +0200 , debian , prit sa plume pour
écrire:

 en gros voici ma config:
 
 
 modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
   |
   |
   portable no1 : 192.168.2.3
   |
   |
   |
   portable no2 : 192.168.2.4
 
 avec aucun serveur de nom.
 
 
 
 
 Le Wed, 14 Apr 2004 11:10:58 +0100 , Yves , prit sa plume pour
 écrire:
 
  On Wed, Apr 14, 2004 at 11:58:35AM +0200, debian wrote:
   j'ai crée un fichier /etc/resolv.conf avec
   
   search
   nameserver 192.168.1.1
  
  Y'a-t-il un vrai serveur de nom là? (genre bind, dnsmasq ou
  autre)
  
   qui est l'adresse du modem, derrière mon serveur d'adresse
   192.168.2.2.
  
  Ton modem a une adresse?
  
 
   Or je n'arrive pas à pinguer sur l'internet.
  
  Est-ce que tu résoud les noms pour commencer (avec dig).
 
 
 je ne connais pas très bien cette commande, mais si je fait un dig
 depuis le portable no2
 
 # dig pontapreta   # nom du portable no1 et inscrit dans /etc/hosts   
  # de chacune des machines
 
 ;  Dig 9.2.1 pontapreta
 ;; global options; printcmd
 ;; connection timed out; no server could be reached
 
 
 voilà.
 
  
   qu'est-ce que j'ai oublié?
  
  Sans doute quelque chose du genre `apt-get install ipmasq` sur
  la machine du milieu.
  
 
 si je comprends bien, je dois installer iptables sur portable no1 et
 activer le masquerading avec un truc du genre:
 
 echo 1  /proc/sys/ipv4/ip_forward
 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
 
 
 Juste? je ne suis pas un pro en iptables, j'ai juste mis cette règle
 sur mon serveur pour avoir l'accès au net depuis mon portable no1.
 
 
 merci
 



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jean-Michel OLTRA
Le mercredi 14 avril 2004, debian a écrit...


bonjour,


 modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
   |
   |
   portable no1 : 192.168.2.3
   |
   |
   |
   portable no2 : 192.168.2.4

 avec aucun serveur de nom.


 ;  Dig 9.2.1 pontapreta
 ;; connection timed out; no server could be reached

Il ne trouve pas de serveur de nom.

   qu'est-ce que j'ai oublié?

portable no2 n'est pas directement lié à no1 ? Dans ce cas c'est no1 qui
sert de passerelle à no2

pourquoi les portables ne sont ils pas liés au serveur (passerelle) avec
un hub ?


-- 
jm



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
Le Wed, 14 Apr 2004 14:58:23 +0200 , Jean-Michel , prit sa plume pour
écrire:

 Le mercredi 14 avril 2004, debian a écrit...
 
 
   bonjour,
 
 
  modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
  |
  |
  portable no1 : 192.168.2.3
  |
  |
  |
  portable no2 : 192.168.2.4
 
  avec aucun serveur de nom.
 
 
  ;  Dig 9.2.1 pontapreta
  ;; connection timed out; no server could be reached
 
 Il ne trouve pas de serveur de nom.

j'en n'ais pas dans mon réseau maison

 
qu'est-ce que j'ai oublié?
 
 portable no2 n'est pas directement lié à no1 ? Dans ce cas c'est no1
 qui sert de passerelle à no2


si. no1 est relié via cable croisé au serveur et via cable parallèle
croisé sur no2.

 
 pourquoi les portables ne sont ils pas liés au serveur (passerelle)
 avec un hub ?

parce que je n'ai pas de carte réseau sur no2. C'est une vielle
machine qui n'est utilisée que pour faire du TeX et j'avais juste
besoin d'installer aspell mais ces paquets étaient trop gros pour une
disquette et je me suis dit que ca pourrait etre une bonne raison de
se mettre une fois a faire fonctionner une plip, ce qui est fait. Mais
maintenant, l'appétit venant en mangeant, j'aimerais avoir un portable
pleinement fonctionnelle, ctd pouvoir le connecté au net, meme si
c'est seulement pour la gestion des paquets.

merci de ton aide



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jean-Michel OLTRA
Le mercredi 14 avril 2004, debian a écrit...

bonjour,


[nettoyage]

  Il ne trouve pas de serveur de nom.
 je n'en ai pas dans mon réseau maison

alors pourquoi utiliser dig ? Tu ne peux pas mettre l'adresse de no1
dans /etc/hosts de no2 ?

si, par ailleurs tu n'as pas de serveur de nom il faut bien que tes
bécanes se reconnaissent donc remplir les /etc/hosts de toutes les
machines du réseau.

Sinon il te faut un serveur de nom quelque part (dnsmasq, bind)

 parce que je n'ai pas de carte réseau sur no2.

Je ne suis pas sur un terrain où je suis très à l'aise mais il faut pê
dire à no1 de forwarder les paquets qui arrivent par plip0 vers la
passerelle, et je n'ai pas vu de chaine FORWARD dans tes précédents
courriels. Puis c'est serveur qui activera le masquerading.

-- 
jm



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
Le Wed, 14 Apr 2004 15:21:14 +0200 , Jean-Michel , prit sa plume pour
écrire:

 Le mercredi 14 avril 2004, debian a écrit...
 
   bonjour,
 
 
 [nettoyage]
 
   Il ne trouve pas de serveur de nom.
  je n'en ai pas dans mon réseau maison
 
 alors pourquoi utiliser dig ? Tu ne peux pas mettre l'adresse de no1
 dans /etc/hosts de no2 ?

parce que je ne suis pas un spécialiste et j'ai fait une bourde..:)

 
 si, par ailleurs tu n'as pas de serveur de nom il faut bien que tes
 bécanes se reconnaissent donc remplir les /etc/hosts de toutes les
 machines du réseau.

ca c'est déjà fait sur les 3 machines.


 
 Sinon il te faut un serveur de nom quelque part (dnsmasq, bind)
 
  parce que je n'ai pas de carte réseau sur no2.
 
 Je ne suis pas sur un terrain où je suis très à l'aise mais il faut
 pê dire à no1 de forwarder les paquets qui arrivent par plip0 vers
 la passerelle, et je n'ai pas vu de chaine FORWARD dans tes
 précédents courriels. Puis c'est serveur qui activera le
 masquerading.
 


Et qu'est-ce que devrais-je mettre comme règles iptables sur no1?


merci



Re: plip entre deux portables + ping internet

2004-04-14 Thread François TOURDE
Le 12522ième jour après Epoch,
[EMAIL PROTECTED] écrivait:

 Le Wed, 14 Apr 2004 14:58:23 +0200 , Jean-Michel , prit sa plume pour
 écrire:

 Le mercredi 14 avril 2004, debian a écrit...
 
 
  bonjour,
 
 
  modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
 |
 |
 portable no1 : 192.168.2.3
 |
 |
 |
 portable no2 : 192.168.2.4
 
  avec aucun serveur de nom.
 
 
  ;  Dig 9.2.1 pontapreta
  ;; connection timed out; no server could be reached
 
 Il ne trouve pas de serveur de nom.

 j'en n'ais pas dans mon réseau maison

 
qu'est-ce que j'ai oublié?
 
 portable no2 n'est pas directement lié à no1 ? Dans ce cas c'est no1
 qui sert de passerelle à no2


 si. no1 est relié via cable croisé au serveur et via cable parallèle
 croisé sur no2.

Une route par défaut sur no2 ne serait-elle pas la bienvenue?

-- 
He that teaches himself has a fool for a master.
-- Benjamin Franklin



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jean-Michel OLTRA
Le mercredi 14 avril 2004, debian a écrit...
bonjour,


 Et qu'est-ce que devrais-je mettre comme règles iptables sur no1?

/sbin/iptables -A FORWARD -i plip0 -o ethX -j ACCEPT
avec le forwarding activé sur no1
et une route pour ces paquets vers serveur qui fera un forwarding vers
eth0 et du masquerading.

Enfin je vois ça comme ça et ce serait bien que d'autres confirment.

Ça me paraît bien compliqué, comme affaire.


-- 
jm



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
Pou résumer (vous me dites si c'est des c.):

1) je vire la règle : 
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

2) je l'a remplace par :
#iptables -A FORWARD -i plip0 -o eth0 -j ACCEPT

3) j'ajoute la route vers le serveur via eth0
#route add 192.168.2.2 eth0


Ca semble correct?



 
 Enfin je vois ça comme ça et ce serait bien que d'autres confirment.
 
 Ça me paraît bien compliqué, comme affaire.


ben la premère fois oui, mais une fois que ca marchera, ce sera vite
fait..



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jean-Michel OLTRA
Le mercredi 14 avril 2004, debian a écrit...
bonjour,


 Ca semble correct?

Rajouter le support du forwarding:
echo ip_forward=yes  /etc/network/options

redémarrer le réseau:
/etc/init.d/networking restart ?


-- 
jm



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
Le Wed, 14 Apr 2004 16:04:51 +0200 , Jean-Michel , prit sa plume pour
écrire:

 Le mercredi 14 avril 2004, debian a écrit...
   bonjour,
 
 
  Ca semble correct?
 
 Rajouter le support du forwarding:
 echo ip_forward=yes  /etc/network/options
 
 redémarrer le réseau:
 /etc/init.d/networking restart ?
 
 

j'ai déjà fait ça mais ca ne marche toujours pas.

mais j'ai modifié les règles iptables comme suit:

iptables -A INPUT -s 192.168.2.0/24 -j ACCEPT
iptables -A OUTPUT -d 192.168.2.0/24 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -j ACCEPT


Peut-etre est-ce une betise?



Re: plip entre deux portables + ping internet

2004-04-14 Thread François TOURDE
Le 12522ième jour après Epoch,
Jean-Michel OLTRA écrivait:

 Le mercredi 14 avril 2004, debian a écrit...
   bonjour,


 Ca semble correct?

 Rajouter le support du forwarding:
 echo ip_forward=yes  /etc/network/options

 redémarrer le réseau:
 /etc/init.d/networking restart ?

L'étape suivante étant d'écrire ou de corriger un HOWTO ;)

-- 
...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
-- Matt Welsh



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jacques L'helgoualc'h
debian a écrit, mercredi 14 avril 2004, à 15:06 :
 Le Wed, 14 Apr 2004 14:58:23 +0200 , Jean-Michel , prit sa plume pour
 écrire:
 
  Le mercredi 14 avril 2004, debian a écrit...
  
  
  bonjour,
  
  
   modem (192.168.1.1)  serveur (eth0: dhcp et eth1: 192.168.2.2)
 |
 |
 portable no1 : 192.168.2.3
 |
 |
 |
 portable no2 : 192.168.2.4


Portable n°1  a aussi  une interface ethernet  (eth0...), quelle  IP lui
as-tu donnée ?  D'après la table de routage citée auparavant,  il y a un
recouvrement  : portable n°1  est, comme  serveur, une  passerelle entre
deux réseaux  *différents* =  par exemple passe  à 192.168.3.0  pour le
réseau plip...

Sur le serveur, il faudra

 -  définir une route vers portable  n°2 via la passerelle portable n°1,
côté eth0 (à moins de se contenter de masquerader n°2 depuis n°1) ;

 -  masquerader les deux portables vers le Net.

 qu'est-ce que j'ai oublié?
  
  portable no2 n'est pas directement lié à no1 ? Dans ce cas c'est no1
  qui sert de passerelle à no2
 
 
 si. no1 est relié via cable croisé au serveur et via cable parallèle
 croisé sur no2.

Sur portable n°1

 - activer le routage entre les deux interfaces,

 - et définir serveur/eth1 comme passerelle par défaut.

  pourquoi les portables ne sont ils pas liés au serveur (passerelle)
  avec un hub ?
 
 parce que je n'ai pas de carte réseau sur no2. C'est une vielle
 machine qui n'est utilisée que pour faire du TeX et j'avais juste
 besoin d'installer aspell mais ces paquets étaient trop gros pour une
 disquette et je me suis dit que ca pourrait etre une bonne raison de
 se mettre une fois a faire fonctionner une plip, ce qui est fait. Mais
 maintenant, l'appétit venant en mangeant, j'aimerais avoir un portable
 pleinement fonctionnelle, ctd pouvoir le connecté au net, meme si
 c'est seulement pour la gestion des paquets.

...et sur  portable n°2,  il suffira  de déclarer le  plip du  n°1 comme
passerelle par défaut.

-- 
Jacques L'helgoualc'h



Re: plip entre deux portables + ping internet

2004-04-14 Thread debian
Le Wed, 14 Apr 2004 15:44:34 +0200 , Jean-Michel , prit sa plume pour
écrire:

 Le mercredi 14 avril 2004, debian a écrit...
   bonjour,
 
 
  Et qu'est-ce que devrais-je mettre comme règles iptables sur no1?
 
 /sbin/iptables -A FORWARD -i plip0 -o ethX -j ACCEPT
 avec le forwarding activé sur no1
 et une route pour ces paquets vers serveur qui fera un forwarding
 vers eth0 et du masquerading.

Est-ce que cela veut dire que je dois aussi modifier les règles
iptables sur le serveur? et si oui lesquels?


 
 Enfin je vois ça comme ça et ce serait bien que d'autres confirment.
 
 Ça me paraît bien compliqué, comme affaire.
 
 



Re: plip entre deux portables + ping internet

2004-04-14 Thread Jean-Michel OLTRA
Le mercredi 14 avril 2004, debian a écrit...
bonjour,


 Est-ce que cela veut dire que je dois aussi modifier les règles
 iptables sur le serveur? et si oui lesquels?

Le mail de Jacques est à méditer.

Mais si tu ne pingues pas serveur ce n'est pas lié à iptables sur
serveur.

Tu pourrais activer tcpdump sur les machines portable no1 et serveur sur
les différentes interfaces pour voir où ça bloque. Voir si ça
arrive/repart.


-- 
jm



plip entre deux portables

2004-04-13 Thread debian
Bonjour.

J'essaie de faire marcher une connection plip entre deux portables, A
avec un 2.6.4 et B avec 2.4.18-bf2.4 les deux ayant le module plip
compilé en module.

Voici ce que j'ai fait:

Sur A:

modprobe  io=0x37b irq=7 parport_pc
(j'ai essayé sans mais ensuite le noyau me dit que sans irq attribuée,
la connection ne sera pas très efficace.., donc j'ai mis ces options
et les messages du noyau ont changés.)
modprobe plip

ifconfig plip0 A pointopoint B
route add B plip0



Sur B:

modprobe  io=0x37b irq=7 parport_pc
modprobe plip

ifconfig plip0 B pointopoint A


Ensuite, quand j'essaie de pinguer ca ne marche pas (dans les 2 sens).

Voilà, il ne me semble pas qu'il y ait beaucoup plus à faire pour
faire fonctionner une connection plip, ou me trompes-je?


Merci d'avance pour vos idées.

S.



Re: plip entre deux portables

2004-04-13 Thread debian
désolé de ce 2e message, mais j'ai oublé une petite précision, cf plus
bas.

merci encore



Le Tue, 13 Apr 2004 18:13:05 +0200 , debian , prit sa plume pour
écrire:

 Bonjour.
 
 J'essaie de faire marcher une connection plip entre deux portables,
 A avec un 2.6.4 et B avec 2.4.18-bf2.4 les deux ayant le module plip
 compilé en module.
 
 Voici ce que j'ai fait:
 
 Sur A:
 
 modprobe  io=0x37b irq=7 parport_pc
 (j'ai essayé sans mais ensuite le noyau me dit que sans irq
 attribuée, la connection ne sera pas très efficace.., donc j'ai mis
 ces options et les messages du noyau ont changés.)
 modprobe plip
 
 ifconfig plip0 A pointopoint B
 route add B plip0
 
 
 
 Sur B:
 
 modprobe  io=0x37b irq=7 parport_pc
 modprobe plip
 
 ifconfig plip0 B pointopoint A
 
 
 Ensuite, quand j'essaie de pinguer ca ne marche pas (dans les 2
 sens).

Pour préciser, voici le message du noyau:

plip0: transmit timeout(1,ff)


 
 Voilà, il ne me semble pas qu'il y ait beaucoup plus à faire pour
 faire fonctionner une connection plip, ou me trompes-je?
 
 
 Merci d'avance pour vos idées.
 
 S.
 



Re: plip entre deux portables

2004-04-13 Thread François TOURDE
Le 12521ième jour après Epoch,
[EMAIL PROTECTED] écrivait:

 Bonjour.

 J'essaie de faire marcher une connection plip entre deux portables, A
 avec un 2.6.4 et B avec 2.4.18-bf2.4 les deux ayant le module plip
 compilé en module.

 Voici ce que j'ai fait:

 Sur A:

 modprobe  io=0x37b irq=7 parport_pc
 (j'ai essayé sans mais ensuite le noyau me dit que sans irq attribuée,
 la connection ne sera pas très efficace.., donc j'ai mis ces options
 et les messages du noyau ont changés.)
 modprobe plip

 ifconfig plip0 A pointopoint B
 route add B plip0



 Sur B:

 modprobe  io=0x37b irq=7 parport_pc
 modprobe plip

 ifconfig plip0 B pointopoint A


 Ensuite, quand j'essaie de pinguer ca ne marche pas (dans les 2 sens).

 Voilà, il ne me semble pas qu'il y ait beaucoup plus à faire pour
 faire fonctionner une connection plip, ou me trompes-je?


 Merci d'avance pour vos idées.

Dans le désordre:

- Ton câble est-il fait pour ça?

- Que dit ifconfig plip0 sur les 2 machines

- Le 'route add' est-il nécessaire? ça me semble bizarre.

- Les adresses A et B sont-elles dans le même subnet?

- Le masque d'adresse de plip0 est-il 255.255.255.255 ?

- Sais-tu danser la carioca ?


Voilà ...

-- 
When you're not looking at it, this fortune is written in FORTRAN.



Re: plip entre deux portables

2004-04-13 Thread debian
Le Tue, 13 Apr 2004 18:22:00 +0200 , François , prit sa plume pour
écrire:

 Le 12521ième jour après Epoch,
 [EMAIL PROTECTED] écrivait:
 
  Bonjour.
 
  J'essaie de faire marcher une connection plip entre deux
  portables, A avec un 2.6.4 et B avec 2.4.18-bf2.4 les deux ayant
  le module plip compilé en module.
 
  Voici ce que j'ai fait:
 
  Sur A:
 
  modprobe  io=0x37b irq=7 parport_pc
  (j'ai essayé sans mais ensuite le noyau me dit que sans irq
  attribuée, la connection ne sera pas très efficace.., donc j'ai
  mis ces options et les messages du noyau ont changés.)
  modprobe plip
 
  ifconfig plip0 A pointopoint B
  route add B plip0
 
 
 
  Sur B:
 
  modprobe  io=0x37b irq=7 parport_pc
  modprobe plip
 
  ifconfig plip0 B pointopoint A
 
 
  Ensuite, quand j'essaie de pinguer ca ne marche pas (dans les 2
  sens).
 
  Voilà, il ne me semble pas qu'il y ait beaucoup plus à faire pour
  faire fonctionner une connection plip, ou me trompes-je?
 
 
  Merci d'avance pour vos idées.
 
 Dans le désordre:
 
 - Ton câble est-il fait pour ça?

en fait , j'en sais rien; c'est un cable // avec 2 fiches males, mais
ya rien d'écrit dessus; je l'avais acheté ya 2-3 ans dans une grande
surface...


 
 - Que dit ifconfig plip0 sur les 2 machines
 

sur A (connecté au net):

plip0 Lien encap:Ethernet  HWaddr FC:FC:C0:A8:02:03
  inet adr:192.168.2.3  P-t-P:192.168.2.4 
Masque:255.255.255.255
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
  collisions:0 lg file transmission:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interruption:7 Adresse de base:0x37b


sur B:

plip0 Lien encap:Ethernet  HWaddr FC:FC:C0:A8:02:03
  inet adr:192.168.2.4  P-t-P:192.168.2.3 
Masque:255.255.255.255
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
  collisions:0 lg file transmission:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interruption:7 Adresse de base:0x37b




 - Le 'route add' est-il nécessaire? ça me semble bizarre.
 

j'en sais rien j'ai suivi une doc
(http://turing.uiah.fi/tarmo/text/plip.html).


si je fais 'route sur A:

Table de routage IP du noyau
Destination Passerelle  Genmask Indic Metric Ref   
Use Iface
B.mais *   255.255.255.255 UH0  00 plip0
B.mais *   255.255.255.255 UH0  00 plip0
localnet*   255.255.255.0   U 0  0   
0 eth0
default A.maison.m 0.0.0.0 UG0  00
eth0


et sur B :

A.maison.mrs*   255.255.255.255 UH  0   0   0   plip0




 - Les adresses A et B sont-elles dans le même subnet?
 

oui, 192.168.2.0


 - Le masque d'adresse de plip0 est-il 255.255.255.255 ?
 

oui.

 - Sais-tu danser la carioca ?
 

jamais essayé, et toi?

 
 Voilà ...
 


merci bcp



Re: plip entre deux portables

2004-04-13 Thread François TOURDE
Le 12521ième jour après Epoch,
[EMAIL PROTECTED] écrivait:

 Le Tue, 13 Apr 2004 18:22:00 +0200 , François , prit sa plume pour
 écrire:

[...]
 Dans le désordre:
 
 - Ton câble est-il fait pour ça?

 en fait , j'en sais rien; c'est un cable // avec 2 fiches males, mais
 ya rien d'écrit dessus; je l'avais acheté ya 2-3 ans dans une grande
 surface...

A mon avis, il vaudrait mieux commencer par vérifier ça... D'autant
plus que ...

 - Que dit ifconfig plip0 sur les 2 machines
 

 sur A (connecté au net):

 plip0 Lien encap:Ethernet  HWaddr FC:FC:C0:A8:02:03
   inet adr:192.168.2.3  P-t-P:192.168.2.4 
 Masque:255.255.255.255
   UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
   collisions:0 lg file transmission:10
   RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
   Interruption:7 Adresse de base:0x37b

TX semble avoir des erreurs...

 - Le 'route add' est-il nécessaire? ça me semble bizarre.
 

 j'en sais rien j'ai suivi une doc
 (http://turing.uiah.fi/tarmo/text/plip.html).

Ok. Joker alors.

 si je fais 'route sur A:

 Table de routage IP du noyau
 Destination Passerelle  Genmask Indic Metric Ref   
 Use Iface
 B.mais *   255.255.255.255 UH0  00 plip0
 B.mais *   255.255.255.255 UH0  00 plip0
 localnet*   255.255.255.0   U 0  0   
 0 eth0
 default A.maison.m 0.0.0.0 UG0  00
 eth0

Fais plutôt 'route -n' histoire de tout voir bien.

 - Sais-tu danser la carioca ?
 

 jamais essayé, et toi?

Pareil.

-- 
Love -- the last of the serious diseases of childhood.



Re: plip entre deux portables

2004-04-13 Thread Yves Rutschle
On Tue, Apr 13, 2004 at 06:22:00PM +0200, François TOURDE wrote:
  modprobe  io=0x37b irq=7 parport_pc

C'est curieux, dans mon vieux script de plip j'ai io=0x378
(valeur calculée en utilisant la pression atmosphérique du
jour, multipliée par la phase de la lune, modulo l'age du
capitaine. Ou bien pechée dans un vieux bouquin genre Bible
PC (h la bible PC...) ou le BIOS).

Ça correspond à la différence entre lpt1: et lpt2: sous DOS,
mais comme les portables ont une certaine tendance à
mélanger allègrement tout ça, ça vaut la peine d'essayer.

 - Le 'route add' est-il nécessaire? ça me semble bizarre.

Il me semble qu'il fut nécessaire, mais que les noyaux (ou
ifconfig?) modernes le font maintenant par defaut. Une chose
est sûre, ça ne devrait pas faire de mal.

 - Sais-tu danser la carioca ?

C'est dangereux, on peut se prendre les pieds dans le cable,
tirer les portables qui tombent sur les pieds, bilan deux
portables cassés et 3 mois à l'hopital :-)

Y.



Re: plip entre deux portables

2004-04-13 Thread Jean-Luc Coulon (f5ibh)

Le 13.04.2004 20:49, Yves Rutschle a écrit :

On Tue, Apr 13, 2004 at 06:22:00PM +0200, François TOURDE wrote:

 modprobe  io=0x37b irq=7 parport_pc


C'est curieux, dans mon vieux script de plip j'ai io=0x378
(valeur calculée en utilisant la pression atmosphérique du
jour, multipliée par la phase de la lune, modulo l'age du
capitaine. Ou bien pechée dans un vieux bouquin genre Bible
PC (h la bible PC...) ou le BIOS).

Ça correspond à la différence entre lpt1: et lpt2: sous DOS,
mais comme les portables ont une certaine tendance à
mélanger allègrement tout ça, ça vaut la peine d'essayer.


- Le 'route add' est-il nécessaire? ça me semble bizarre.


Il me semble qu'il fut nécessaire, mais que les noyaux (ou
ifconfig?) modernes le font maintenant par defaut. Une chose
est sûre, ça ne devrait pas faire de mal.


- Sais-tu danser la carioca ?


C'est dangereux, on peut se prendre les pieds dans le cable,
tirer les portables qui tombent sur les pieds, bilan deux
portables cassés et 3 mois à l'hopital :-)

Y.




Je joins les scripts qui me servaient à connecter un Pentium 100 à un  
notebook IBM avec le câble adéquat (on trouve une description de ce  
câble dans le PLIP Howto. On appelait ça un câble 'laplink' je crois).


Ces scripts ont sans doute pris un peu de vieux mais bon ...

--
- Jean-Luc
#!/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 4 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
 
#!/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
 


pgpwUNwIvSuwL.pgp
Description: PGP signature


Re: plip entre deux portables

2004-04-13 Thread François TOURDE
Le 12521ième jour après Epoch,
Yves Rutschle écrivait:

 On Tue, Apr 13, 2004 at 06:22:00PM +0200, François TOURDE wrote:
  modprobe  io=0x37b irq=7 parport_pc

Ah ben faut pas quoter n'importe comment... J'ai jamais dit ça moi :)

 C'est curieux, dans mon vieux script de plip j'ai io=0x378
 (valeur calculée en utilisant la pression atmosphérique du
 jour, multipliée par la phase de la lune, modulo l'age du
 capitaine. Ou bien pechée dans un vieux bouquin genre Bible
 PC (h la bible PC...) ou le BIOS).

C'est pas dans un des trucs de Nostradamus aussi?

 - Sais-tu danser la carioca ?

 C'est dangereux, on peut se prendre les pieds dans le cable,
 tirer les portables qui tombent sur les pieds, bilan deux
 portables cassés et 3 mois à l'hopital :-)

Bon, alors je vais pas essayer de danser ça, moi. En plus, j'aime pas
danser des trucs louches ;)

-- 
If you want to travel around the world and be invited to speak at a lot
of different places, just write a Unix operating system.
(By Linus Torvalds)



ayuda con PLIP

2003-11-16 Thread Gabriel Di Lorenzo



alguien me puede ayudar con plip, no tengo 
conectividad, un ping por ejemplo no me responde, y no se que puede ser, estoy 
con kernel 2.4 en un pc y con 1.3 en otro, el de kernel 1.3 es una notebook 
486sx con 4 mb de ram, como puedo probar que el lpt1 linux lo halla 
tomado

gabriel


Re: PLIP networking -- sort of working

2003-10-25 Thread Karsten M. Self
on Fri, Oct 24, 2003 at 03:43:35AM -0700, Karsten M. Self ([EMAIL PROTECTED]) wrote:
 Continuing my masochistic tendencies, I've got PLIP networking running
 to an IBM 486 thinkpad with an IRQless perallel port.  The trick, it
 appears, is using plipconfig to increase the nibble and trigger wait
 times.  Until now, I've had problems with constant network timeouts,
 e.g.:
 
Oct 24 03:23:57 localhost kernel: plip0: transmit timeout(1,8f)
 
 (from /var/log/messages on near side).
 
 With my latest trial, I've actually had just over 12 minutes' pass with
 now timeouts, which is pretty remarkable.  OK, so they've been
 low-traffic minutes
 
 Ordinarially, I'd be getting repeated timeouts, with ping times ranging
 from 5-6ms to thousands of ms with many dropped pings, particularly when
 attempting involved connections such as ssh'ing into the box.  These are
 now far reduced, and networking is overall useable.  I'm posting this
 because I've found a number of posts from folks who've had PLIP setup
 problems, but nothing indicating resolution.  
 
 This Works For Me[tm]:

Followup after ~24 hours.

It's definitely not perfect, but it works.  With some network load (ssh,
telnet, and ftp sessions running concurrently) there are some timeouts
in the 1 second to 10 second range, but the link is overall useable.

My method in setting the nibble/trigger intervals is simply to double
the current value (starting from defaults) until acceptable performance
is attained.  That's rough, but as stated, works.

And, all said, if PLIP's the only link you can get with a box, it's nice
to have.


Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
Go through his clothes and look for loose change.
- Princess Bride


signature.asc
Description: Digital signature


PLIP networking -- sort of working

2003-10-24 Thread Karsten M. Self
Continuing my masochistic tendencies, I've got PLIP networking running
to an IBM 486 thinkpad with an IRQless perallel port.  The trick, it
appears, is using plipconfig to increase the nibble and trigger wait
times.  Until now, I've had problems with constant network timeouts,
e.g.:

   Oct 24 03:23:57 localhost kernel: plip0: transmit timeout(1,8f)

(from /var/log/messages on near side).

With my latest trial, I've actually had just over 12 minutes' pass with
now timeouts, which is pretty remarkable.  OK, so they've been
low-traffic minutes

Ordinarially, I'd be getting repeated timeouts, with ping times ranging
from 5-6ms to thousands of ms with many dropped pings, particularly when
attempting involved connections such as ssh'ing into the box.  These are
now far reduced, and networking is overall useable.  I'm posting this
because I've found a number of posts from folks who've had PLIP setup
problems, but nothing indicating resolution.  

This Works For Me[tm]:



I've been using scripted network setups to allow reproduceable
brokenness.


My configuration looks like:

 nearfar
   __  ____
  (  )eth0| | parallel |  |
   )   LAN  (-+   jung  +--+  reflex  |
  (__)   /|_|\/|__|
/ \  /
192.168.1.50 192.168.3.1192.168.3.2



On the far side of the connection (reflex):

#!/bin/bash
# Start up PLIP connection w/ jung

export PATH=/usr/bin:/usr/sbin:/bin:/sbin

# Visible commands
set -v

# Modules
modprobe parport
# This is the IRQ-less parport.
modprobe parport_pc 0x3BC irq=none
modprobe plip

# Tune PLIP -- adjust as needed and sync on jung.
plipconfig plip0 nibble 12000 trigger 2000


# network proper
ifconfig plip0 192.168.3.2 pointopoint 192.168.3.1 netmask 255.255.255.255 up
route add default gw 192.168.3.1

# test
ping -c 3 192.168.3.1



On the near side of the connection (jung):

#!/bin/bash
# Start up PLIP connection w/ reflex

export PATH=/usr/bin:/usr/sbin:/bin:/sbin

# Visible commands.
set -v


# Modules
modprobe parport
# Note that this port has an IRQ.  Set appropriately.
modprobe parport_pc io=0x378 irq=7
modprobe plip

# Configure PLIP -- adjust as needed and sync to reflex
plipconfig plip0 nibble 12000 trigger 2000


# network proper.
ifconfig plip0 192.168.3.1 pointopoint 192.168.3.2 netmask 255.255.255.255 up

echo 1  /proc/sys/net/ipv4/ip_forward 

ping -c 4 reflex
route -n




Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
You're just stalling now.
- Princess Bride


pgp0.pgp
Description: PGP signature


Re: PLIP...

2003-07-17 Thread Michel

Sébastien wrote:

J'ai finalement realise un cable a 12 brins ( comme suggere dans les
howtos ) et depuis , ca marche assez bien ( 40 Mo/s ) .



J'avais lu sur les archives de ce forum que ce problème existait, et j'ai donc 
tester mon cable... a partir d'un shéma pris sur un bouquin (Admin rsx sous 
nux - O'Reilly) et il est bon (d'apres ce shéma).


Tu parles de 12 brins, j'en ai onze sur le shéma...
Le shéma n'est pas conforme a ces pages :
- http://www.tldp.org/HOWTO/PLIP-Install-HOWTO-8.html
- http://www.minet.net/linux/HOWTO-fr/mini/PLIP-2.html


Je suis cable exactement comme sur cette deuxieme URL ( PLIP-2.html )



Demain je vais re-tester mon cable...

Merci pour ton aide...

Sebbb



Amicalement

Michel

--

Tuxophiles, bien sur que nous sommes tuxophiles, et winophobes en plus.
Mais il ne faut pas confondre tuxophilie et tuxo-integrisme, l'amalgame
est fait beaucoup trop rapidement par les winophiles-tuxophobes .



PLIP...

2003-07-16 Thread Sébastien
Bonjour a tous,

J'ai donc installer plip grace a différents HOWTOs...

Mais lors ce que je fair un ping, probleme :
transmit timeout(1,80)

et le destinataire affiche :
transmit timeout(1,87)

Voila un apercu d'un ping :

PING 192.168.16.2 (192.168.16.2): 56 data bytes
64 bytes from 192.168.16.2: icmp_seq=6 ttl=255 time=10083.4 ms
64 bytes from 192.168.16.2: icmp_seq=63 ttl=255 time=38142.8 ms
64 bytes from 192.168.16.2: icmp_seq=65 ttl=255 time=49095.5 ms
64 bytes from 192.168.16.2: icmp_seq=248 ttl=255 time=6388.3 ms
64 bytes from 192.168.16.2: icmp_seq=249 ttl=255 time=5386.1 ms
64 bytes from 192.168.16.2: icmp_seq=250 ttl=255 time=4388.7 ms
64 bytes from 192.168.16.2: icmp_seq=251 ttl=255 time=3387.5 ms
64 bytes from 192.168.16.2: icmp_seq=344 ttl=255 time=15082.2 ms
64 bytes from 192.168.16.2: icmp_seq=359 ttl=255 time=5022.2 ms
64 bytes from 192.168.16.2: icmp_seq=371 ttl=255 time=21.9 ms
64 bytes from 192.168.16.2: icmp_seq=375 ttl=255 time=22.2 ms
64 bytes from 192.168.16.2: icmp_seq=387 ttl=255 time=31.5 ms
64 bytes from 192.168.16.2: icmp_seq=390 ttl=255 time=38.3 ms
64 bytes from 192.168.16.2: icmp_seq=397 ttl=255 time=119.7 ms
64 bytes from 192.168.16.2: icmp_seq=412 ttl=255 time=171.5 ms
64 bytes from 192.168.16.2: icmp_seq=515 ttl=255 time=32.7 ms
64 bytes from 192.168.16.2: icmp_seq=516 ttl=255 time=44.4 ms
64 bytes from 192.168.16.2: icmp_seq=545 ttl=255 time=21.9 ms
64 bytes from 192.168.16.2: icmp_seq=546 ttl=255 time=22.1 ms
64 bytes from 192.168.16.2: icmp_seq=547 ttl=255 time=72.2 ms
64 bytes from 192.168.16.2: icmp_seq=548 ttl=255 time=42.4 ms
64 bytes from 192.168.16.2: icmp_seq=550 ttl=255 time=112.0 ms
64 bytes from 192.168.16.2: icmp_seq=551 ttl=255 time=52.2 ms
64 bytes from 192.168.16.2: icmp_seq=586 ttl=255 time=119.1 ms
64 bytes from 192.168.16.2: icmp_seq=641 ttl=255 time=123.1 ms
64 bytes from 192.168.16.2: icmp_seq=646 ttl=255 time=130.2 ms
64 bytes from 192.168.16.2: icmp_seq=676 ttl=255 time=45.9 ms
64 bytes from 192.168.16.2: icmp_seq=684 ttl=255 time=22.2 ms
64 bytes from 192.168.16.2: icmp_seq=692 ttl=255 time=43.2 ms
64 bytes from 192.168.16.2: icmp_seq=985 ttl=255 time=116.8 ms

--- 192.168.16.2 ping statistics ---
1000 packets transmitted, 30 packets received, 97% packet loss
round-trip min/avg/max = 21.9/4612.7/49095.5 ms

ben ça fait pas beaucoup !
est-ce que c'est suffisant pour du http ???

merci
Sebbb



Re: PLIP...

2003-07-16 Thread Michel

Sébastien wrote:

Bonjour a tous,



Bonjour ,


J'ai donc installer plip grace a différents HOWTOs...

Mais lors ce que je fair un ping, probleme :
transmit timeout(1,80)

et le destinataire affiche :
transmit timeout(1,87)

Voila un apercu d'un ping :

PING 192.168.16.2 (192.168.16.2): 56 data bytes
64 bytes from 192.168.16.2: icmp_seq=6 ttl=255 time=10083.4 ms
64 bytes from 192.168.16.2: icmp_seq=63 ttl=255 time=38142.8 ms
64 bytes from 192.168.16.2: icmp_seq=65 ttl=255 time=49095.5 ms


[ snip ]


--- 192.168.16.2 ping statistics ---
1000 packets transmitted, 30 packets received, 97% packet loss
round-trip min/avg/max = 21.9/4612.7/49095.5 ms

ben ça fait pas beaucoup !
est-ce que c'est suffisant pour du http ???



J'ai pas mal galere avec plip , et j'ai eu les memes problemes que
toi : problemes de cables , sur a 95 % !

J'ai finalement realise un cable a 12 brins ( comme suggere dans les
howtos ) et depuis , ca marche assez bien ( 40 Mo/s ) .

Il y a tout de meme des petits timeouts de temps a autre , mais ca
ne gene que l'affichage ( faudra que je modifie le plip.c un de ces
jours , pour lr rendre moins bavard :) )


merci
Sebbb




Amicalement

Michel

--

Tuxophiles, bien sur que nous sommes tuxophiles, et winophobes en plus.
Mais il ne faut pas confondre tuxophilie et tuxo-integrisme, l'amalgame
est fait beaucoup trop rapidement par les winophiles-tuxophobes .



Re: PLIP...

2003-07-16 Thread Sébastien
 J'ai finalement realise un cable a 12 brins ( comme suggere dans les
 howtos ) et depuis , ca marche assez bien ( 40 Mo/s ) .

J'avais lu sur les archives de ce forum que ce problème existait, et j'ai donc 
tester mon cable... a partir d'un shéma pris sur un bouquin (Admin rsx sous 
nux - O'Reilly) et il est bon (d'apres ce shéma).

Tu parles de 12 brins, j'en ai onze sur le shéma...
Le shéma n'est pas conforme a ces pages :
- http://www.tldp.org/HOWTO/PLIP-Install-HOWTO-8.html
- http://www.minet.net/linux/HOWTO-fr/mini/PLIP-2.html

Demain je vais re-tester mon cable...

Merci pour ton aide...

Sebbb


 Amicalement

 Michel



Re: Configuration de plip... [était Réseau port COM1]

2003-06-18 Thread Sven Luther
On Tue, Jun 17, 2003 at 08:16:19PM +0200, Sébastien wrote:
 J'ai trouvé un mini-Howto sur plip : 
 http://www.freenix.fr/unix/linux/HOWTO/mini/PLIP.html
 
 J'y ai lu qu'il faut que ce soit supporté par le noyau... Ce qui amène 2 
 questions :
 
 - est-ce que la recompilation est obligatoire (ou bien peut on compiler un 
 nouveau module pour le noyau en cour d'utilisation ???

Oui et non.

En fait, il faut recompiler le noyau si tu veut ajouter ou enlever des
modules, les compiler built-in, ou d'autre chose du genre. Il existe
bien sur des modules externes au noyau, et la pas besoin de tout
recompiler, bien qu'ils ai besoin de sources du noyau decompresse et
configurer, voir thread a ce sujet precedement. Il doit y avoir moyen de
compiler juste un module, mais franchement, je le deconseille.

Ceci dis, dans ton cas particulier, il ne devrait pas y avoir de
probleme, car plip est configurer en module, si je me souvient bien,
il te suffit donc de l'ajouter a ton /etc/modules, et le tour est joue.
Verifie quand meme cependant.

 - sinon, comment faire pour savoir les options qui on étées utilisées pour 
 compiler un noyau... Explications : J'utilise ne noyau 2.4.18-bf2.4 du cd qui 
 m'as permis d'installer linux. J'ai déjà essayer de le recompiler, mais ça 
 allé jamais, un coup pas de support de pppoe, ou bien ext3 etc...

bien sur, la config est dans /boot/config-2.4.18 ou quelque chose du
genre.

Amicalement,

Sven Luther



Re: Configuration de plip... [était Réseau port COM1]

2003-06-18 Thread Sébastien
Le Mercredi Juin 18 2003 10:54, vous avez écrit :
 On Tue, Jun 17, 2003 at 08:16:19PM +0200, Sébastien wrote:
  J'ai trouvé un mini-Howto sur plip :
  http://www.freenix.fr/unix/linux/HOWTO/mini/PLIP.html
 
  J'y ai lu qu'il faut que ce soit supporté par le noyau... Ce qui amène 2
  questions :
 
  - est-ce que la recompilation est obligatoire (ou bien peut on compiler
  un nouveau module pour le noyau en cour d'utilisation ???

 Oui et non.

 En fait, il faut recompiler le noyau si tu veut ajouter ou enlever des
 modules, les compiler built-in, ou d'autre chose du genre. Il existe
 bien sur des modules externes au noyau, et la pas besoin de tout
 recompiler, bien qu'ils ai besoin de sources du noyau decompresse et
 configurer, voir thread a ce sujet precedement. Il doit y avoir moyen de
 compiler juste un module, mais franchement, je le deconseille.

 Ceci dis, dans ton cas particulier, il ne devrait pas y avoir de
 probleme, car plip est configurer en module, si je me souvient bien,
 il te suffit donc de l'ajouter a ton /etc/modules, et le tour est joue.
 Verifie quand meme cependant.

  - sinon, comment faire pour savoir les options qui on étées utilisées
  pour compiler un noyau... Explications : J'utilise ne noyau 2.4.18-bf2.4
  du cd qui m'as permis d'installer linux. J'ai déjà essayer de le
  recompiler, mais ça allé jamais, un coup pas de support de pppoe, ou bien
  ext3 etc...

 bien sur, la config est dans /boot/config-2.4.18 ou quelque chose du
 genre.

 Amicalement,

 Sven Luther

ok, merci

je pense que je vais recompiler...

Sebbb



Configuration de plip... [était Réseau port COM1]

2003-06-17 Thread Sébastien
J'ai trouvé un mini-Howto sur plip : 
http://www.freenix.fr/unix/linux/HOWTO/mini/PLIP.html

J'y ai lu qu'il faut que ce soit supporté par le noyau... Ce qui amène 2 
questions :

- est-ce que la recompilation est obligatoire (ou bien peut on compiler un 
nouveau module pour le noyau en cour d'utilisation ???

- sinon, comment faire pour savoir les options qui on étées utilisées pour 
compiler un noyau... Explications : J'utilise ne noyau 2.4.18-bf2.4 du cd qui 
m'as permis d'installer linux. J'ai déjà essayer de le recompiler, mais ça 
allé jamais, un coup pas de support de pppoe, ou bien ext3 etc...

Merci d'avance
Sebbb



Re: plip et timeout

2003-05-19 Thread Romuald DELAVERGNE
On Sat, 17 May 2003 16:23:23 +0200
Michel [EMAIL PROTECTED] wrote:

 Il y a toujours des timeouts qui polluent un peu l'affichage , y
 aurait-il un moyen de ne pas les afficher a l'ecran ?
 

En modifiant le source du noyau.



plip et timeout

2003-05-17 Thread Michel

Bonjour ,

J'utilse un vieux portable ( compaq presario 1260 , K6 333 , 96Mo ram )
que je connecte a mon reseau par plip , notamment pour les upgrades .

Il y a toujours des timeouts qui polluent un peu l'affichage , y
aurait-il un moyen de ne pas les afficher a l'ecran ?

Amicalement

Michel
--

Tuxophiles, bien sur que nous sommes tuxophiles, et winophobes en plus.
Mais il ne faut pas confondre tuxophilie et tuxo-integrisme, l'amalgame
est fait beaucoup trop rapidement par les winophiles-tuxophobes .



Re: How to make plip actually work?

2003-03-21 Thread Karl E. Jorgensen
On Thu, Mar 13, 2003 at 02:42:09PM -0500, ScruLoose wrote:
 Hey all,
 
 The brief version of my question:
 
 I'm trying to make a connection over plip (w/ laplink cable) between my
 desktop and a crusty old laptop.  plip loads fine on both machines, and
 packets are travelling fine from the desktop to the laptop.  Packets from
 the laptop to the desktop are lost something like 85%-100% of the time,
 with plip0: transmit timeout(1,87) error for the lost ones.
 How do I make this into a usable connection?

Which kernel versions are you using?  There was a problem in 2.4.18 with
plip:

http://www.ussg.iu.edu/hypermail/linux/kernel/0202.3/0113.html

which I ran into once. The symptom was that machines with 2.4.18 could
transmit, but not listen properly.  I.e. always 100% loss.

 Should I be suspecting my laplink cable? (store-bought, brand-new, 'Belkin'
 brand)... if cable failure is a likely cause, I *can* probably exchange the
 thing and try again...  I suspect not, since the loss only ever turns up in
 one direction.

If it is a one-way error in the cable, reversing the cable should throw
some light on that...

I found that plip was very cpu intensive - even once I got the EPP/ECP
settings in the bios to agree with the kernel options. That took a bit
of work, as it did not seem to autodetect very well.

IIRC I ended up setting the bios to EPP and created this in
/etc/modutils/parport:

options parport_pc io=0x378

[I know: this should be the default IO port. But I must have added it in for a
reason.  It's a lng time ago though]

If everything else fails, you could fall back to a null-modem cable and
ppp.  Or apt-zip - if that is applicable for an initial install (never
used it myself).

HTH
-- 
  _  __
|/ _  _| |_   | _ __ _  _  _  _  _  _
|\(_|| | |_   |(/)| (_|(-'| |`-,(-`| |   http://www.karl.jorgensen.com
\_|  _|


pgp0.pgp
Description: PGP signature


How to make plip actually work?

2003-03-13 Thread ScruLoose
Hey all,

The brief version of my question:

I'm trying to make a connection over plip (w/ laplink cable) between my
desktop and a crusty old laptop.  plip loads fine on both machines, and
packets are travelling fine from the desktop to the laptop.  Packets from
the laptop to the desktop are lost something like 85%-100% of the time,
with plip0: transmit timeout(1,87) error for the lost ones.
How do I make this into a usable connection?

The whole story:

As I've mentioned a couple times to the list over the last couple of
weeks, I'm trying to install woody on this ol' P133 laptop I got as a
hand-me-down.  Laptop has no NIC, no CDROM, and a toasted old NiCd
battery that'll hold enough charge to run for about 30 seconds.  So, I'm
not sure the thing is actually worth the price of a pcmcia ethernet
card, and I figured I'd install debian over plip.  Great theory, but...
Off the installation boot/root/driver floppies, I couldn't convince plip
module to load at all, so I installed base from floppies. Fine.
Now, after doing some voodoo to put the parport's IRQ into /proc...
I've convinced the plip module to load.  Good.
When I have the parallel port in EPP or ECP mode, I ping to my desktop and
get 75%-85% packet loss.  In bi-directional mode, I get 100% packet loss.
The error on those lost packets is always the same: 
  plip0: transmit timeout(1,87)
The lost packets are *not* showing up in my desktop's RX count in ifconfig.
Ping from the desktop to the laptop sometimes works, and sometimes gets
100% packet loss (no error shows up for the lost packets).  Those lost
packets *are* reaching the laptop, but its answering packets are dying
of the same transmit timeout error.
I currently have the parallel ports on both the laptop and the desktop
in EPP mode (the desktop *was* in ECP/EPP, presumably autodetecting).

Any idea what to change in order to get that packet-loss down to the level
where that connection is some use?

Any idea what's causing that timeout error?

Is that timeout ping-specific, or is it configured somewhere for the
network interface...  ie, can I supply a large value for that timeout and
get a slow-but-working network out of it?

Should I be suspecting my laplink cable? (store-bought, brand-new, 'Belkin'
brand)... if cable failure is a likely cause, I *can* probably exchange the
thing and try again...  I suspect not, since the loss only ever turns up in
one direction.

Thanks,
-Chris


pgp0.pgp
Description: PGP signature


Re: Install over plip

2003-03-08 Thread ScruLoose
Hi again, everybody

In my ongoing attempt to get woody installed on this ol' P 133 laptop.
I installed the base system with floppies, which seems to have worked.  
I've finally convinced it to load the plip module, and it's allowing me
to add a route to my desktop box. The laptop is called roadie, and its
IP on my little LAN is 192.168.1.13.

Now, on my desktop (called miguel, on IP 192.168.1.12) I unload lp, load
plip, add a route to roadie, and try to ping him.  100% packet loss.

Try to ping miguel from roadie, and I get: 
plip0: transmit timeout(1,87)

Um.  Not exactly the response I was hoping for.

Miguel's route says:

miguel:/home/chris# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.1.13*   255.255.255.255 UH0  00 plip0
192.168.1.13*   255.255.255.255 UH0  00 plip0
192.168.1.0 *   255.255.255.0   U 0  00 eth0
default 192.168.1.1 0.0.0.0 UG0  00 eth0

and ifconfig says:
miguel:/home/chris# ifconfig plip0
plip0 Link encap:Ethernet  HWaddr FC:FC:FC:FC:FC:FC  
  inet addr:192.168.1.12  P-t-P:192.168.1.13 Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:4 errors:0 dropped:1 overruns:0 frame:0
  TX packets:145 errors:71 dropped:0 overruns:0 carrier:71
  collisions:0 txqueuelen:10 
  RX bytes:392 (392.0 b)  TX bytes:46174 (45.0 KiB)
  Interrupt:255 Base address:0x378 

Roadie's route says:

Kernel IP routing table
Destination Gateway   Genmask Flags Metric Ref   Use Iface
192.168.1.12* 255.255.255.255 UH0  0   0 plip0

and roadie's ifconfig:

plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:0D  
  inet addr:192.168.1.13  P-t-P:192.168.1.12 Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:145 errors:0 dropped:0 overruns:0 frame:0
  TX packets:4 errors:52 dropped:0 overruns:0 carrier:52
  collisions:0 txqueuelen:10 
  RX bytes:46174 (45.0 KiB)  TX bytes:392 (392.0 b)
  Interrupt:7 Base address:0x378 

Can anybody see what's wrong about this?  Why they're not actually
communicating?  And why different errors at each end?  And, obviously,
how to fix it?

Thanks for any guidance
-Chris


pgp0.pgp
Description: PGP signature


Install over plip (was Re: switching between CUPS and PLIP?)

2003-03-06 Thread ScruLoose
On Fri, Feb 28, 2003 at 04:36:46PM -0500, Levi Waldron wrote:
 On February 28, 2003 03:04 am, ScruLoose wrote:
-SNIP-
  I'll need to unload lp before loading plip, so that plip can
  'own' the parallel port.
  Right?
 
 Yes.  The only way it can't work is if lp is compiled into the kernel, which 
 is not a standard option.

Whee!  okay, plip seems to load and unload happily enough on the ol'
desktop box.

 One fun way you could accomplish your task would be to start with a minimal 
 floppy distro just to get plip going, then just copy an entire filesystem 
 either over the minimal distro or on a new partition.  I've done this on a 
 couple old 386's and posted my experience at:
 
 http://www.superant.com/cgi-bin/smalllinux.pl?Small_Linux_Notes_By_Levi_Waldron

Hmm...  I may try that out... dunno if it'll be much of an advantage for
my situation.  If I can't convince the boot-floppies system to get
plip going, that'll be my next line of attack.

Right now I'm working from the rescue, root, and 4 driver floppies from
my woody CD... from the 1440 set of images.
When I try to load the plip module, I get this:

/lib/modules/2.2.20/net/plip.o init_module: Device or resource busy
A couple of other comments follow, then Installation failed.

My detective work on Google turned up this page:

http://turing.uiah.fi/tarmo/text/plip.html

Which says that plip is probably failing because I need to give it an
IRQ.  It also says something about having to write it straight into the
/proc filesystem because plip won't accept it as a module parameter.
Umm, okay.  If I had an IRQ to provide it, I'd try that.

How do I find out what IRQ the parallel port is actually on?
Do I need to specify an I/O address to go with it, and if so, how do I
find *that* out?
Does it make any difference whether I put the port in bi-directional,
ECP, or EPP mode?  (I have no idea what these modes mean.)

I can't interrogate the old win95 system for any of these values, 'cause
I've already repartitioned/reformatted the HD.  (oops?)

The machine in question is a Hitachi Pentium 133 laptop: 
Notebook E133D/1000
Model # HESP100DS

Thanks for any help,
-Chris


pgp0.pgp
Description: PGP signature


switching between CUPS and PLIP?

2003-02-28 Thread ScruLoose
Hi all,

I'm interested in installing woody on this hand-me-down P133 laptop that a
friend's mom is no longer using, and it has neither CD-ROM drive nor NIC,
so I'm thinking I'll try the install-over-plip thing.  Now, most of the
process is documented fairly well in a HOWTO that I found, but I'm left
with a couple of questions.  Presumably, on my desktop box with its one
parallel port, I'll need to unload lp before loading plip, so that plip can
'own' the parallel port.  
Right?  

And the way to do this is modprobe -r lp and then modprobe plip... yes?
Is there some way I should be informing the rest of my system that I'm
doing this (so that nothing starts attempting to print...)?
(Sorry, I'm still pretty new, and have little idea of how modules interact
with the system.)

Okay, so assuming I'm right so far: once I've got plip configured and the
install is done, and I want to re-enable printing, I'll unload the plip
module, and load lp back in.

And further, after this is done, will it be basically a question of just
modprobe-ing lp and away we go, or is this process going to wreak bloody
havoc on my CUPS setup?  Is it reasonably easy to just switch back and
forth between CUPS and PLIP?

I'm not looking for it to be totally seamless... if the laptop turns out to
be of some use (and not broken, which has yet to be determined) then I'll
probably spring for an ethernet card fairly soon... but it'd be nice to
have plip networking in the meantime. However, if it's going to take this
newbie a day of reconfiguring every time I want to switch between plip and
printing, it won't really be worth doing.

Also, if anyone has any pointers to some good reading to help gain an
understanding of modules... when, why, and how to load/unload them... how
regular executables interact with them... what are dynamically loadable
and which only load/unload with a reboot...
(Preferably online reading, this starving student already spent *far* too
much on textbooks this year)

Thanks for any help,
-Chris


pgp0.pgp
Description: PGP signature


Re: switching between CUPS and PLIP?

2003-02-28 Thread Levi Waldron
On February 28, 2003 03:04 am, ScruLoose wrote:
 Hi all,

 I'm interested in installing woody on this hand-me-down P133 laptop that a
 friend's mom is no longer using, and it has neither CD-ROM drive nor NIC,
 so I'm thinking I'll try the install-over-plip thing.  Now, most of the
 process is documented fairly well in a HOWTO that I found, but I'm left
 with a couple of questions.  Presumably, on my desktop box with its one
 parallel port, I'll need to unload lp before loading plip, so that plip can
 'own' the parallel port.
 Right?

Yes.  The only way it can't work is if lp is compiled into the kernel, which 
is not a standard option.

As for switching back and forth between plip and printing, I have the 
requisite commands contained in shell scripts called plip-on.sh and 
plip-off.sh.  Basically to switch back to printing, it's just removing the 
plip module and inserting lp again, which can be done with modprobe or 
insmod/rmmod.  I'll give you a reference to those shell scripts in a moment.

One fun way you could accomplish your task would be to start with a minimal 
floppy distro just to get plip going, then just copy an entire filesystem 
either over the minimal distro or on a new partition.  I've done this on a 
couple old 386's and posted my experience at:

http://www.superant.com/cgi-bin/smalllinux.pl?Small_Linux_Notes_By_Levi_Waldron

Even if you don't use a minimal floppy distro to get started, this will guide 
you through the plip process.  It's a great way to gain an understanding of 
the basics of how a GNU/Linux OS works, because a floppy distro is so much 
simpler than a full distro that things are more obvious.  At the end of my 
smalllinux posting there are links to a couple floppy images that make using 
that tiny distro easier, and have plip-on.sh and plip-off.sh, which may or 
may not work out of the box for you.  The annoying thing about using a tiny 
distro like that are that because it's so stripped down it may be missing 
tools you need, and have no easy way of compiling for the old kernel and 
libraries.  I spent a bunch of time finding compatible binaries of those 
modules and programs, with the contents of those added floppies I made, it's 
easy.

-Levi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: plip

2003-02-17 Thread Sylvain Sauvage
Fri, 14 Feb 2003 18:47:22 +0100, michel a écrit :
 michel wrote:
[...]
 Actuellement , le portable charge une iso ( pour test de debit ) sur le
 net à 12 Ko / s env. . On doit pouvoir optimiser :)
[...]

plip passe 4 bits utiles à la fois, sur des câbles à 115200 bits par
seconde au maximum. Donc, le maximum est de 4*115200/8 = 57600 octets par
seconde. En comptant un ratio de 7/8 pour les paquets IP (taille
utile/taille passée), on a 50400 o/s, soit environ 49 ko/s. Tu es donc à
un quart de la vitesse optimale théorique.

D'après ce dont je me souviens (ça fait un moment que je ne fais plus de
plip), on peut arriver à plus de 40 ko/s.

Bonne continuation,
-- 
| Sylvain Sauvage, doctorant/ATER [IAD  SMA]  | bzz?.o:.
|   GREYC -- CNRS UMR 6072, Université de Caen |   ` %^..^___§  o::o::
|   tél://+33 (0)2 31 56 74 31 |   @  (oo)   )  ::o::o
|__ http://www.info.unicaen.fr/~sauvage ___| _`|'___WW¯WW_][__



Re: plip

2003-02-14 Thread michel

michel wrote:
 Je tente une connection plip entre un portable compacq presario 1260
 et une machine de bureau ( athlon 2200+ ) .
 J'ai configure le port parallele de l'athlon en ECP et le celui du
 portable en ECP/EPP ( pas le choix entre les deux ).
 J'ai realise un cable conforme a celui du howto ( 12 brins ) .

 Ca a peut-etre de l'importance , quand j'insmod plip sur le portable
 il m'enguele car plip0 n'a pas d'irq

 Quand je ping athlon - portable , tout est perdu ! et du portable
 vers l'athlon , j'ai toujours plip0: transmit timeout(1,80) à chaque
 tentative

 D'ou peut venir le problème ?

 Amicalement

 Michel


Je me repond :)

Ca fonctionne ; pour ceux que ca interesse : pb de cable !
Ce cable avait ete confectionne a partir d'une rallonge //
avec les 25 brins cables ( male / femelle ) . J'avais demonte
la DB25 femelle et souder les 12 brins utiles sur une DB25 male .
Toujours des timeouts .
En coupant les 13 brins non utilises sur l'autre connecteur , tout est
rentre dans l'ordre .

J'ai actuellement :

ADSL
 |
eth  |  eth
  Athlon 2.2G---P133--Duron 1Go
  ( sarge )( woody )  ( mdk9.0 )
|
| plip  
|
 Portable ( compaq presario 1260 )
  ( kmoppix )

( ouais , je sais . . .  mais c'est pour investiguer :)


Actuellement , le portable charge une iso ( pour test de debit ) sur le
net à 12 Ko / s env. . On doit pouvoir optimiser :)
Il y a toujours de temps en temps des timeouts mais tout fonctionne .
Je vais tenter un apt-get update / upgrade .

Amicalement

Michel

--

Tuxophiles, bien sur que nous sommes tuxophiles, et winophobes en plus.
Mais il ne faut pas confondre tuxophilie et tuxo-integrisme, l'amalgame
est fait beaucoup trop rapidement par les winophiles-tuxophobes .



Re: Help needed w/ PLIP connection

2003-02-13 Thread fbrian
Run as root

#plipconfig plip0

Good Luck

brf

 Hi all:

 I am having trouble debugging my plip connection.
 I get clean kernel messages on bootup to the fact that the plip modules
 are loaded etc.
 On machine is euler and the other is gauss.
 I have some out put from both boxxess.
 I have used the plip cable before at work so I know that it is
 working correctly.

 I tried to ping the remote box unsuccessfully.
 EULER:~# ping 192.168.2.2
 PING 192.168.2.2 (192.168.2.2): 56 data bytes


 --- 192.168.2.2 ping statistics ---
 20 packets transmitted, 0 packets received, 100% packet loss


 *  I hit ctrl c after 1 min of no repsonse


 EULER:~# ifconfig plip0
 plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:01
   inet addr:192.168.2.1  P-t-P:192.168.2.2  Mask:255.255.255.255
 UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:10
   RX bytes:0 (0.0 b)  TX bytes:3038 (2.9 KiB)
   Interrupt:7 Base address:0x378



 EULER:~# cat /etc/network/interfaces
 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

 # The loopback interface
 auto lo
 iface lo inet loopback

 # The first network card - this entry was created during the Debian
 installation
 # (network, broadcast and gateway are optional)
 auto eth0
 iface eth0 inet static
 address 192.168.1.2
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1

 auto eth1
 iface eth1 inet static
 address 192.168.4.1
 netmask 255.255.255.0
 network 192.168.4.0
 broadcast 192.168.4.255

 auto plip0
 iface plip0 inet static
 address 192.168.2.1
 netmask 255.255.255.255
 pointopoint 192.168.2.2


 EULER:~# cat /etc/modutils/parport
 options parport_pc io=0x378,0xac00 irq=auto,auto
 options plip parport=0
 options lp parport=1



 EULER:~# route
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface bigtime-loopbac *   255.255.255.255 UH1  0 0
 sl0 192.168.2.2 *   255.255.255.255 UH0  0 0
 plip0 192.168.4.0 *   255.255.255.0   U 0 00
 eth1 localnet*   255.255.255.0   U0  00
 eth0 default 192.168.1.1 0.0.0.0UG0  00 eth0
 default *   0.0.0.0U 1  00 sl0


 EULER:~# route -n
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface 209.123.12.26   0.0.0.0 255.255.255.255 UH1  00
 sl0 192.168.2.2 0.0.0.0 255.255.255.255 UH0  00
 plip0 192.168.4.0 0.0.0.0 255.255.255.0   U 000
 eth1 192.168.1.0 0.0.0.0 255.255.255.0   U0  00
 eth0 0.0.0.0 192.168.1.1 0.0.0.0UG0  00 eth0
 0.0.0.0 0.0.0.0 0.0.0.0U 1  00 sl0





 Other PC


 I also to tried to ping the remote box unsuccessfully.
 gauss:~# ping 192.168.2.1
 PING 192.168.2.1 (192.168.2.1): 56 data bytes

 --- 192.168.2.1 ping statistics ---
 10 packets transmitted, 0 packets received, 100% packet loss

 gauss:~# ifconfig plip0
 plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:02
   inet addr:192.168.2.2  P-t-P:192.168.2.1  Mask:255.255.255.255
 UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
   RX packets:31 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:59 dropped:0 overruns:0 carrier:59
   collisions:0 txqueuelen:10
   RX bytes:3038 (2.9 KiB)  TX bytes:0 (0.0 b)
   Interrupt:7 Base address:0x378


 gauss:~# cat /etc/network/interfaces
 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

 # The loopback interface
 auto lo
 iface lo inet loopback

 # The first network card - this entry was created during the Debian
 installation
 # (network, broadcast and gateway are optional)

 auto plip0
 iface plip0 inet static
 address 192.168.2.2
 netmask 255.255.255.255
 pointopoint 192.168.2.1





 gauss:~# cat /etc/modutils/parport
 options parport_pc io=0x378 irq=7
 #options lp parport=0
 # printing done via local network at home
 options plip parport=0


 gauss:~# route
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface 192.168.2.1 *   255.255.255.255 UH0  0
0 plip0


 gauss:~# route -n
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface 192.168.2.1 0.0.0.0 255.255.255.255 UH0  0
0 plip0 gauss:~#


 TIA

 Brian




 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED

Re: Help needed w/ PLIP connection

2003-02-13 Thread Levi Waldron
On February 12, 2003 03:12 pm, [EMAIL PROTECTED] wrote:
 Hi all:

 I am having trouble debugging my plip connection.

I haven't set up plip for a couple years so my memory is a little 
foggy.  I used the PLIP-HOWTO to set up the following scripts on 
the machine cedar to connect it via plip to birch; maybe they'll 
help.  I don't have the birch scripts handy, but they were similar.

Note:  I defined the IP addresses for birch and cedar in /etc/hosts

bash-2.05a$ more /usr/local/bin/plip-on.sh
#!/bin/sh
/sbin/rmmod lp
/bin/echo 7  /proc/parport/0/irq
/sbin/insmod plip
/sbin/ifconfig lo netmask 255.255.255.255 up
/sbin/ifconfig plip0 cedar pointopoint birch netmask 
255.255.255.255 up

bash-2.05a$ more /usr/local/bin/plip-off.sh
#!/bin/sh
/sbin/rmmod plip
/sbin/insmod lp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Help needed w/ PLIP connection

2003-02-12 Thread fbrian
Hi all:

I am having trouble debugging my plip connection.
I get clean kernel messages on bootup to the fact that the plip modules
are loaded etc.
On machine is euler and the other is gauss.
I have some out put from both boxxess.
I have used the plip cable before at work so I know that it is
working correctly.

I tried to ping the remote box unsuccessfully.
EULER:~# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes


--- 192.168.2.2 ping statistics ---
20 packets transmitted, 0 packets received, 100% packet loss


*  I hit ctrl c after 1 min of no repsonse


EULER:~# ifconfig plip0
plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:01
  inet addr:192.168.2.1  P-t-P:192.168.2.2  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:3038 (2.9 KiB)
  Interrupt:7 Base address:0x378



EULER:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth1
iface eth1 inet static
address 192.168.4.1
netmask 255.255.255.0
network 192.168.4.0
broadcast 192.168.4.255

auto plip0
iface plip0 inet static
address 192.168.2.1
netmask 255.255.255.255
pointopoint 192.168.2.2


EULER:~# cat /etc/modutils/parport
options parport_pc io=0x378,0xac00 irq=auto,auto
options plip parport=0
options lp parport=1



EULER:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface bigtime-loopbac *   255.255.255.255 UH1  0 0
sl0 192.168.2.2 *   255.255.255.255 UH0  0 0
plip0 192.168.4.0 *   255.255.255.0   U 0 00
eth1 localnet*   255.255.255.0   U0  00
eth0 default 192.168.1.1 0.0.0.0UG0  00 eth0
default *   0.0.0.0U 1  00 sl0


EULER:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 209.123.12.26   0.0.0.0 255.255.255.255 UH1  00
sl0 192.168.2.2 0.0.0.0 255.255.255.255 UH0  00
plip0 192.168.4.0 0.0.0.0 255.255.255.0   U 000
eth1 192.168.1.0 0.0.0.0 255.255.255.0   U0  00
eth0 0.0.0.0 192.168.1.1 0.0.0.0UG0  00 eth0
0.0.0.0 0.0.0.0 0.0.0.0U 1  00 sl0





Other PC


I also to tried to ping the remote box unsuccessfully.
gauss:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes

--- 192.168.2.1 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss

gauss:~# ifconfig plip0
plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:02
  inet addr:192.168.2.2  P-t-P:192.168.2.1  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:31 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:59 dropped:0 overruns:0 carrier:59
  collisions:0 txqueuelen:10
  RX bytes:3038 (2.9 KiB)  TX bytes:0 (0.0 b)
  Interrupt:7 Base address:0x378


gauss:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)

auto plip0
iface plip0 inet static
address 192.168.2.2
netmask 255.255.255.255
pointopoint 192.168.2.1





gauss:~# cat /etc/modutils/parport
options parport_pc io=0x378 irq=7
#options lp parport=0
# printing done via local network at home
options plip parport=0


gauss:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 192.168.2.1 *   255.255.255.255 UH0  0
   0 plip0


gauss:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 192.168.2.1 0.0.0.0 255.255.255.255 UH0  0
   0 plip0 gauss:~#


TIA

Brian




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Fwd: plip issues!!!

2003-02-11 Thread fbrian
Hi all:

I am having trouble debugging my plip connection.
I get clean kernel messages on bootup that the plip modules
are loaded etc.
On machine is euler and the other is gauss.
I have some out put from both boxxess.
I have used the plip cable before at work so I know that it is
working correctly.


EULER:~# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes


--- 192.168.2.2 ping statistics ---
20 packets transmitted, 0 packets received, 100% packet loss


*  I hit ctrl c after 1 min of no repsonse


EULER:~# ifconfig plip0
plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:01
  inet addr:192.168.2.1  P-t-P:192.168.2.2  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:3038 (2.9 KiB)
  Interrupt:7 Base address:0x378



EULER:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth1
iface eth1 inet static
address 192.168.4.1
netmask 255.255.255.0
network 192.168.4.0
broadcast 192.168.4.255

auto plip0
iface plip0 inet static
address 192.168.2.1
netmask 255.255.255.255
pointopoint 192.168.2.2


EULER:~# cat /etc/modutils/parport
options parport_pc io=0x378,0xac00 irq=auto,auto
options plip parport=0
options lp parport=1



EULER:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface bigtime-loopbac *   255.255.255.255 UH1  0 0
sl0 192.168.2.2 *   255.255.255.255 UH0  0 0
plip0 192.168.4.0 *   255.255.255.0   U 0 00
eth1 localnet*   255.255.255.0   U0  00
eth0 default 192.168.1.1 0.0.0.0UG0  00
eth0 default *   0.0.0.0U 1  00
sl0


EULER:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 209.123.12.26   0.0.0.0 255.255.255.255 UH1  00
sl0 192.168.2.2 0.0.0.0 255.255.255.255 UH0  00
plip0 192.168.4.0 0.0.0.0 255.255.255.0   U 000
eth1 192.168.1.0 0.0.0.0 255.255.255.0   U0  00
eth0 0.0.0.0 192.168.1.1 0.0.0.0UG0  00
eth0 0.0.0.0 0.0.0.0 0.0.0.0U 1  00
sl0





Other PC



gauss:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes

--- 192.168.2.1 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss

gauss:~# ifconfig plip0
plip0 Link encap:Ethernet  HWaddr FC:FC:C0:A8:02:02
  inet addr:192.168.2.2  P-t-P:192.168.2.1  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:31 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:59 dropped:0 overruns:0 carrier:59
  collisions:0 txqueuelen:10
  RX bytes:3038 (2.9 KiB)  TX bytes:0 (0.0 b)
  Interrupt:7 Base address:0x378


gauss:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)

auto plip0
iface plip0 inet static
address 192.168.2.2
netmask 255.255.255.255
pointopoint 192.168.2.1





gauss:~# cat /etc/modutils/parport
options parport_pc io=0x378 irq=7
#options lp parport=0
# printing done via local network at home
options plip parport=0


gauss:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 192.168.2.1 *   255.255.255.255 UH0  0
   0 plip0


gauss:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface 192.168.2.1 0.0.0.0 255.255.255.255 UH0  0
   0 plip0 gauss:~#


TIA

Brian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: plip

2003-02-06 Thread Frédéric BOITEUX
Le Thu, 06 Feb 2003 12:11:42 +0100, michel [EMAIL PROTECTED] a écrit :

 Je tente une connection plip entre un portable compacq presario 1260  et une 
 machine de bureau ( athlon 2200+ ) .
 J'ai configure le port parallele de l'athlon en ECP et le celui du
 portable en ECP/EPP ( pas le choix entre les deux ).
 J'ai realise un cable conforme a celui du howto ( 12 brins ) .
 
 Ca a peut-etre de l'importance , quand j'insmod plip sur le portable
 il m'enguele car plip0 n'a pas d'irq
 
 Quand je ping athlon - portable , tout est perdu ! et du portable
 vers l'athlon , j'ai toujours plip0: transmit timeout(1,80) à chaque
 tentative
 
 D'ou peut venir le problème ?
 

Salut,

  est-ce que ton port // est bien activé dans ton BIOS ??

-- 
Frédéric Boiteux  -  Calistel



Problème de routage en PLIP

2003-01-31 Thread André Rodier
Salut à tous !
Je cherche désespérément à utiliser une liaison PLIP entre un portable
et une passerelle.
La passerelle fonctionne déjà avec un autre PC, via une carte réseau
1Mbps, et ceci fonctionne bien. par contre, le portable semble ne pas
vouloir utiliser la passerelle, et les pings vers mon fai restens sans
réponse.
Les pings entre le portable et la passerelle fonctionnent, (ils se
voient).
C'est donc un problème de configuration de la route, du portable vers la
passerelle. Quelqu'un pourrait-il m'expliquer la syntaxe bizarre de la
commande route, et m'indiquer quelles sont les commandes pour configurer
la route.
Sur le portable, j'ai essayé :
route add default gw serveur netmask 255.255.255.0 dev plip0
mais ensuite, les pings envoyés vers mon DNS restent sans réponses.
Il y a bien un mini howto, en français, mais je le trouve confu, et il
date un peu.
Merci de votre aide.



Problème de routage en PLIP

2003-01-31 Thread HubiX
Salut à tous !
Je cherche désespérément à utiliser une liaison PLIP entre un portable
et une passerelle.
La passerelle fonctionne déjà avec un autre PC, via une carte réseau
1Mbps, et ceci fonctionne bien. par contre, le portable semble ne pas
vouloir utiliser la passerelle, et les pings vers mon fai restens sans
réponse.
Les pings entre le portable et la passerelle fonctionnent, (ils se
voient).
C'est donc un problème de configuration de la route, du portable vers la
passerelle. Quelqu'un pourrait-il m'expliquer la syntaxe bizarre de la
commande route, et m'indiquer quelles sont les commandes pour configurer
la route.
Sur le portable, j'ai essayé :
route add default gw serveur netmask 255.255.255.0 dev plip0
mais ensuite, les pings envoyés vers mon DNS restent sans réponses.
Il y a bien un mini howto, en français, mais je le trouve confu, et il
date un peu.
Merci de votre aide.



Problème de routage en PLIP

2003-01-31 Thread HubiX
Salut à tous !
Je cherche désespérément à utiliser une liaison PLIP entre un portable
et une passerelle.
La passerelle fonctionne déjà avec un autre PC, via une carte réseau
1Mbps, et ceci fonctionne bien. par contre, le portable semble ne pas
vouloir utiliser la passerelle, et les pings vers mon fai restens sans
réponse.
Les pings entre le portable et la passerelle fonctionnent, (ils se
voient).
C'est donc un problème de configuration de la route, du portable vers la
passerelle. Quelqu'un pourrait-il m'expliquer la syntaxe bizarre de la
commande route, et m'indiquer quelles sont les commandes pour configurer
la route.
Sur le portable, j'ai essayé :
route add default gw serveur netmask 255.255.255.0 dev plip0
mais ensuite, les pings envoyés vers mon DNS restent sans réponses.
Il y a bien un mini howto, en français, mais je le trouve confu, et il
date un peu.
Merci de votre aide.




Re: Problème de routage en PLIP

2003-01-31 Thread Yves Rutschle
On Fri, Jan 31, 2003 at 03:05:47PM +0100, HubiX wrote:
 Les pings entre le portable et la passerelle fonctionnent, (ils se
 voient).
 C'est donc un problème de configuration de la route, du portable vers la
 passerelle.

Non; si ping marche entre le portable et la passerelle, ça
veut dire que la route entre le portable et la passerelle
marche correctement.

Ton problème est sans doute au niveau de la passerelle qui
ne fait pas le relais (NAT/Masquerade) correctement.

 mais ensuite, les pings envoyés vers mon DNS restent sans réponses.

La réponse dépend sans doute de ce que tu utilises sur la
passerelle. J'ai fait ça avec ipmasq qui est très simple à
utiliser, si je me souviens bien il suffit de relancer
ipmasq *après* avoir établit la liaison plip (comme ça
ipmasq voit qu'il y a un plip et établit le relais vers
l'exterieur).

 Il y a bien un mini howto, en français, mais je le trouve confu, et il
 date un peu.

A priori, rien de tout ça n'a changé ces dernières années.

/Y



Problème de routage en PLIP

2003-01-31 Thread HubiX
Salut à tous !
Je cherche désespérément à utiliser une liaison PLIP entre un portable
et une passerelle.
La passerelle fonctionne déjà avec un autre PC, via une carte réseau
1Mbps, et ceci fonctionne bien. par contre, le portable semble ne pas
vouloir utiliser la passerelle, et les pings vers mon fai restens sans
réponse.
Les pings entre le portable et la passerelle fonctionnent, (ils se
voient).
C'est donc un problème de configuration de la route, du portable vers la
passerelle. Quelqu'un pourrait-il m'expliquer la syntaxe bizarre de la
commande route, et m'indiquer quelles sont les commandes pour configurer
la route.
Sur le portable, j'ai essayé :
route add default gw serveur netmask 255.255.255.0 dev plip0
mais ensuite, les pings envoyés vers mon DNS restent sans réponses.
Il y a bien un mini howto, en français, mais je le trouve confu, et il
date un peu.
Merci de votre aide.




Re: Problme de routage en PLIP

2003-01-31 Thread Daniel Dchelotte
HubiX [EMAIL PROTECTED] a écrit :

| Je cherche désespérément à utiliser une liaison PLIP  snip

Lorsque tu essayes d'imprimer quelque chose, tu serais pas du genre à
appuyer quinze fois sur le bouton « Impression », des fois que cette
conne d'imprimante ait oublié tes dix premières tentatives ?

En plus, c'est complètement hors-sujet sur cette liste.

Allez, pour me détendre, je vais essayer de deviner à quelle heure mon
mail va être reçu... Hmm... Je vote « ce vendredi soir vers 23h ».

-- Dan



PLIP y 2.4.18

2003-01-02 Thread Fermín Manzanedo
Hola

Hasta ahora para conectarme entre mis dos máquinas de casa utilizaba un pequeño 
script llamado ipmasquerad y que utilizaba para simplificarme la tarea:

Script 

#!/bin/sh
echo 7  /proc/parport/0/irq
insmod plip
ifconfig plip0 asterix pointopoint obelix
route add default gw obelix

 script

Ahora he compilado el kernel 2.4.18 y cuando intento conectarme mediante PLIP a 
mi otra máquina (kernel 2.2.17) me devuelve el siguiente mensaje:

Mensaje 

asterix:~/scripts.de.shell# ./ipmasquerad
./ipmasquerad: /proc/parport/0/irq: No existe el fichero o el directorio
Using /lib/modules/2.4.18/kernel/drivers/net/plip.o
plip: parport0 has no IRQ. Using IRQ-less mode,which is fairly inefficient!
NET3 PLIP version 2.4-parport [EMAIL PROTECTED]
plip0: Parallel port at 0x378, not using IRQ.

 mensaje

¿A qué puede deberse? No entiendo como me dice que el puerto paralelo no tiene 
irq cuando en el arranque del sistema aparece:

dmesg 

parport0: PC-style at 0x378 (0x778) [PCSPP(,...)]
parport0: irq 7 detected

 dmesg

Además, tampoco me funciona a la hora de imprimir.

Ah! He compilado el kernel con soporte para parport_pc pero no lo puse como 
módulo.

¿Alguna ayuda?

Gracias de antemano. Salu2

-- 
 .''`.fermin.manzanedo AT hispalinux DOT es | Badajoz - Spain  
: :' :http://www.terra.es/personal/fmg4647/home.html | Usuario Linux #184967
`. `' Toshiba 2140CDS con Debian GNU/Linux 3.0 Woody ô__
  `-  Llave GPG pública en pgp.rediris.org ,/
  ()_\()


pgpokiRaOLT3Q.pgp
Description: PGP signature


Re: Installation via plip/ NFS

2002-11-05 Thread Andreas Metzler
Andreas Metzler [EMAIL PROTECTED] wrote:
 Christian Beermann [EMAIL PROTECTED] wrote:
 [Orobleme mit PLIP]

 Ich habe das schon laenger nicht mehr ausprobiert, aber damals(TM)
 habe ich die Erfahrung gemacht, dass eine tadelos funktionierende
 PLIP-Verbindung bei gleichbleibender Konfiguration nicht mehr
 funktionierte, wenn auch nur an einem Ende ein 2.4er Kernel lief.
 Genaueres weiss ich leider nicht mehr.

Hallo!
Ich habe mich gestern damit gespielt und den Laptop von potato auf
woody aktualisiert (Hat mit dselect uebrigens tadellos funktioniert,
nur die installierten inoffiziellen KDE1-Pakete haben kleine Probleme
gemacht), die beteiligten Computer waren der Laptop mit 2.2.19 und ein
Desktop mit RedHat 7.3 Version von 2.4.18.

Es war recht muehsam, es zum Laufen zu kriegen, man macht 10
mal fast dasselbe und irgendwann funktioniert es, ich schreibe das mal
hier auf, damit naechstesmal nachschauen kann. ;-)


Der Knackpunkt scheint zu sein, dass parport_pc auf beiden Computern
mit den gleichen Optionen (io und irq natuerlich jeweils passend)
geladen wird, d.h. auf beiden Computern mit IRQ und DMA:
modprobe -r plip
modprobe -r parport_pc
modprobe -v parport_pc io=0x378 irq=7 dma=1
(Im BIOS jeweils ECP/EPP einstellen.)
*laptop*  ifconfig plip0 192.168.0.1  pointopoint  192.168.0.2
*desktop* ifconfig plip0 192.168.0.2  pointopoint  192.168.0.1
(Die Netmask anzugeben ist ueberfluessig.)

Auf beiden Computern sollte bei halbwegs aktuellem Kernel (ab 2.2.0)
die korrekte Host-Route automatisch gesetzt werden.

*laptop*  route -n
Destination  Gateway  Genmask Flags Metric RefUse Iface
192.168.0.2  0.0.0.0  255.255.255.255 UH0  00 plip0

Als Funktionstest genuegt ping auf den jeweils anderen Computer,
pingen auf die eigene IP sagt gar nichts aus, da gehen die Daten nicht
ueber die Leitung.


Zu deinem originalen Posting:
| Laptop:
| ---
| Mit den rescue /root /driver Disketten leitete ich die Installation in
| die Wege. Auf einer anderen Partition befindet sich nich Windows und
| laut der Systemsteuerung befindet sich der Parallelport an 03bc-03bf
| irq=7 also tat ich folgendes:
| rmmod parport_pc
| insmod parport_pc io=0x3bc irq=7

uebergib hier mal zusaetzlich die Option -v, damit du siehst, ob der
Kernel auf 0x3bc ueberhaupt einen Parallelport findet und etwas in der
Art sagt:
parport0: PC-style at 0x378 (0x778), irq 7, dma 1 [PCSPP,TRISTATE,COMPAT,ECP,DMA]

| und:
| ifconfig plip1 ...

Das ist zwar 1:1 aus dem Howto, aber das funktioniert bei mir nicht, denn
ich habe nur einen Parallelport und daher auch nur ein plip0 und kein
plip1 (SIOCSIFADDR: No such device).

 cu andreas
-- 
Hey, da ist ein Ballonautomat auf der Toilette!
Unofficial _Debian-packages_ of latest unstable _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/


-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Installation via plip/ NFS

2002-10-28 Thread Christian Beermann
Hallo,
Vielleicht fehlt mir nur noch der letzte Hinweis um diese Sache 
erfolgreich zuende zu bringen.

Ich versuche gerade auf meinem Laptop (IBM Thinkpad 560) Debian Woody zu 
installieren. Da dieses kein CD Laufwerk besitzt stiess ich auf die 
Lösung, wie im PLIP Install HOWTO:  

http://www.tldp.org/HOWTO/PLIP-Install-HOWTO.html

beschrieben. Genauso wie dort ging ich auch vor. 
Desktop Computer: (Debian Woody Kernel 2.4.18-bf2.4)
-

Ich packte /cdrom in die /etc/exports, dann habe ich den lpd gestoppt 
und rmmod lp durchgeführt. Dann habe ich parport_pc mit den io / irq 
Einstellungen die ich im bios fand (parport_pc io=0x378 irq=7) geladen, 
dann plip. Dann Aufruf von 
ifconfig plip0 192.168.0.2  pointopoint  192.168.0.1 netmask 
255.255.255.255 up

was natürlich auch in /etc/hosts eingetragen ist. ping 192.168.0.2 
funktioniert auch.   

Laptop:
---
Mit den rescue /root /driver Disketten leitete ich die Installation in 
die Wege. Auf einer anderen Partition befindet sich nich Windows und 
laut der Systemsteuerung befindet sich der Parallelport an 03bc-03bf 
irq= 7 also tat ich folgendes:
rmmod parport_pc
insmod parport_pc io=0x3bc irq=7
insmod plip

und:
ifconfig plip1 192.168.0.1  pointopoint  192.168.0.2 netmask 
255.255.255.255 up


Nun der Versuch vom Desktop PC ping 192.168.0.1 schlägt fehl. Ich 
erhalte eine Timeout Meldeung, und 100% Package loss. in 
/var/log/messages finde ich folgendes: 

Oct 28 13:42:40 desktop kernel: device plip0 entered promiscuous mode

Nun bin ich mit meinem Latein am Ende ! Habe ich etwas übersehen ? 
Könnte es ein Problem von Hardwareseite mit den IRQ's sein ? Fragen 
über Fragen. Wenn jemand einen Tipp für mich hat wäre ich sehr dankbar 
!

Christian


-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Installation via plip/ NFS

2002-10-28 Thread Christian Beermann
Am Montag, 28. Oktober 2002 15:00 schrieb Ruediger Noack:

Hallo Rüdiger, 
vielen Dank für die Antwort

 Christian Beermann wrote:
 Könnte es ein Problem von Hardwareseite mit den IRQ's sein ?

 Sind beide Parallel-Ports im Bios auf Duplex (also bidirektionalen
 Betrieb oder wie das genau heißt) eingestellt?

Ja sind sie das vergaß ich zu erwähnen 

Danke
Christian


-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Installation via plip/ NFS

2002-10-28 Thread Andreas Metzler
Christian Beermann [EMAIL PROTECTED] wrote:
 Vielleicht fehlt mir nur noch der letzte Hinweis um diese Sache 
 erfolgreich zuende zu bringen.

 Ich versuche gerade auf meinem Laptop (IBM Thinkpad 560) Debian Woody zu 
 installieren. Da dieses kein CD Laufwerk besitzt stiess ich auf die 
 Lösung, wie im PLIP Install HOWTO:  

 http://www.tldp.org/HOWTO/PLIP-Install-HOWTO.html

 beschrieben. Genauso wie dort ging ich auch vor. 
 Desktop Computer: (Debian Woody Kernel 2.4.18-bf2.4)
[...]

Ich habe das schon laenger nicht mehr ausprobiert, aber damals(TM)
habe ich die Erfahrung gemacht, dass eine tadelos funktionierende
PLIP-Verbindung bei gleichbleibender Konfiguration nicht mehr
funktionierte, wenn auch nur an einem Ende ein 2.4er Kernel lief.
Genaueres weiss ich leider nicht mehr.
 cu andreas
-- 
Unofficial _Debian-packages_ of latest unstable _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/


-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Installation via plip/ NFS

2002-10-28 Thread Christian Beermann
Am Montag, 28. Oktober 2002 21:26 schrieb Andreas Metzler:
 Christian Beermann [EMAIL PROTECTED] wrote:
  Vielleicht fehlt mir nur noch der letzte Hinweis um diese Sache
  erfolgreich zuende zu bringen.
 
  Ich versuche gerade auf meinem Laptop (IBM Thinkpad 560) Debian
  Woody zu installieren. Da dieses kein CD Laufwerk besitzt stiess
  ich auf die Lösung, wie im PLIP Install HOWTO:
 
  http://www.tldp.org/HOWTO/PLIP-Install-HOWTO.html
 
  beschrieben. Genauso wie dort ging ich auch vor.
  Desktop Computer: (Debian Woody Kernel 2.4.18-bf2.4)

 [...]

 Ich habe das schon laenger nicht mehr ausprobiert, aber damals(TM)
 habe ich die Erfahrung gemacht, dass eine tadelos funktionierende
 PLIP-Verbindung bei gleichbleibender Konfiguration nicht mehr
 funktionierte, wenn auch nur an einem Ende ein 2.4er Kernel lief.
 Genaueres weiss ich leider nicht mehr.
  cu andreasDas ist ja schon mal ein Hinweis ! Danke !
Kann jemand ähnliches berichten ? Bzw. hat jemand plip schon mal mit 
einem 2.4er Kernel zum Laufen bekommen ? 

Christian

P.S. Sorry für PM war zu schnell 


-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: PLIP irq problem

2002-09-30 Thread Karl E. Jorgensen

On Sun, Sep 29, 2002 at 09:32:29PM -0700, Lars Jensen wrote:
 How can I make PLIP use a given irq? I just installed PLIP, and I don't
 seem to be able to make PLIP use a given irq. It always starts up in
 IRQ-less mode. insmod plip does not seem to accept an irq=7 parameter.

you dont set irq's in plip since plip is not a hardware driver.

Instead try this in /etc/modutils/parport:

options parport_pc io=0x378 irq=auto
or
options parport_pc io=0x378 irq=7 dma=3  # ECP mode

followed by update-modules. Basically the settings here should be the
same as in the BIOS.

-- 
Karl E. Jørgensen
[EMAIL PROTECTED]
www.karl.jorgensen.com
 Today's fortune:
Mathematics deals exclusively with the relations of concepts
to each other without consideration of their relation to experience.
-- Albert Einstein



msg04376/pgp0.pgp
Description: PGP signature


PLIP irq problem

2002-09-29 Thread Lars Jensen

How can I make PLIP use a given irq? I just installed PLIP, and I don't
seem to be able to make PLIP use a given irq. It always starts up in
IRQ-less mode. insmod plip does not seem to accept an irq=7 parameter.
The result is that my PLIP connection times out.

Any ideas?

Thanks,
Lars.

--
Lars Jensen, Truckee Meadows Community College, Reno NV 89512-3999.
Tel: 775.673.7113 E-mail: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Help getting Plip connection working

2002-09-28 Thread fbrian

I am running kernel 2.4.18 on both boxxes.
Both running debian 3.0
Unable to get plip to work???

Box 1
a.)contents of /etc/modutils/parport
===
options parport_pc io=0x378 irq=7
options plip parport=0
===

b.)output of #lsmod | grep plip

plip10760 1 (autoclean)
parport 24576 1 (autoclean) [parport_pc plip]

c.)contents of /etc/network/interfaces

auto plip0
iface plip0 inet static
address 192.168.2.2
netmask 255.255.255.255
pointopoint 192.168.2.1

Box 2 (I will be using a printer on the other parallel port

a.)contents of /etc/modutils/parport

options parport_pc io=0x378,0x278 irq=7,5
options lp=parport=0
options plip parport=1



b.)output of #lsmod | grep plip
plip   10760   0  (autoclean) (unused)
parport24576   0  [plip parport_pc]


c.)contents of /etc/network/interfaces
auto plip1
iface plip1 inet static
address 192.168.2.1
netmask 255.255.255.255
pointopoint 192.168.2.2






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Help getting Plip connection working

2002-09-28 Thread Karl E. Jorgensen

On Sat, Sep 28, 2002 at 01:30:25PM -0400, [EMAIL PROTECTED] wrote:
 I am running kernel 2.4.18 on both boxxes.
 Both running debian 3.0
 Unable to get plip to work???

Perhaps 
http://www.ussg.iu.edu/hypermail/linux/kernel/0202.3/0113.html
will help you.

I ran into that problem too. Another symptom was that tcpdump's of the
network interfaces would only should *outgoing* traffic. They could
talk, but not listen. Kernel 2.4.17 was OK in that respect.

The patch worked for me - but none of the patched machines use their
parport for anything else, so I cannot vouch for how a printer would
react.

IIRC it should be fixed in 2.4.19.


HTH
-- 
Karl E. Jørgensen
[EMAIL PROTECTED]
www.karl.jorgensen.com
 Today's fortune:
Computers are like air conditioners.  Both stop working, if you open windows.
-- Adam Heath



msg04224/pgp0.pgp
Description: PGP signature


Correo-e en una red PLIP

2002-04-26 Thread Fermín Manzanedo
Hola
el tema es el siguiente:

Tengo mis dos ordenadores compartiendo la conexión a internet mediante una 
conexión PLIP. 

Hasta aquí todo bien, ahora lo que quiero es que la máquina que utilizo como 
pasarela sea la que me recoja el correo del servidor y me lo redistribuya a 
la otra máquina. ¿Es esto posible?. Y más aún, ¿Podría enviar un mail con la 
segunda máquina y que llegue a otra máquina externa? (por ejemplo a la lista).

He pensado configurar el exim de la segunda máquina como máquina satélite o 
algo así, pero no se si con esto valdrá.

Un saludo y gracias

--
Fermín Manzanedo Guzmán  |  Badajoz - Spain
http://www.terra.es/personal/fmg4647/home.html | Usuario Linux #184967
Desde Toshiba2140CDS | Debian GNU/Linux 3.0 Woody 
mail -s gpg public key [EMAIL PROTECTED]  /dev/null 


pgpeXS3w7nvUA.pgp
Description: PGP signature


Problemas com PLIP.

2002-04-17 Thread José Leonardo Thozo Vieira
Debianzóides,
Estou tentando fazer comunicação através de porta paralela usando duas
maquinas: vaca, formiga.

::[ vaca (192.168.0.1) ]::
Debian GNU/Linux 3.0 (unstable)
Linux vaca 2.4.18 #1 Sex Abr 12 20:21:05 BRT 2002 i686 unknown
parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
192.168.0.1 P-a-P:192.168.0.2 Masc:255.255.255.0

::[ formiga (192.168.0.2) ]::
Debian GNU/Linux 2.2 (stable)
Linux formiga 2.2.19 #1 Fri Mar 22 02:08:51 BRT 2002 i486 unknown
parport0: PC-style at 0x378, irq 7 [SPP]
192.168.0.2 P-a-P:192.168.0.1 Masc:255.255.255.0

Mesmo após efetuar as configurações corretamente, não consigo fazer com
que as máquinas se comuniquem. Se eu executo o ping usando o endereço da
maquina local ( vaca = vaca ), ele me retorna, agora quando pingo (
vaca = formiga ).

vaca:~# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2): 56 data bytes
plip0: transmit timeout(1,78)

--- 192.168.0.2 ping statistics ---
366 packetes transmitted, 0 packetes recived, 100% packet loss

Alguém?
-- 
....
D|   __  _ _  |F
E|  / _|  __ _  | |_  | |__   ___   _  _  |A
B| |  _| / _` | |  _| | '_ \ / _ \ | || | |T
I| |_|   \__,_|  \__| |_.__/ \___/  \_, | |B
A|José Leonardo Thozo Vieira |__/ |O
N||Y
``---::[ [EMAIL PROTECTED] ]::---''


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problemas com PLIP.

2002-04-17 Thread Pedro Zorzenon Neto
Oi Leonardo,

  Acho que o Masc deveria ser 255.255.255.255, (posso estar enganado)
  
  Tem um HOW-TO que segui os passos (PLIP HOW-TO) e deu certo, confira
os passos que você fez neste how-to.

  Pegue o esquema do cabo neste how-to e leve seu cabo para qualquer
oficina de reparos eletrônicos (televisão, som, video, etc) e peça para
a pessoa medir se o cabo está feito corretamente.

  Depois de fazer isso, mande o resultado dos comandos ifconfig e
route -n de ambas as máquinas, assim podemos lhe dar melhores dicas.

  Quando usei o PLIP (parallel line IP), conseguia taxas de 35Kbytes/s.
É legal PLIP para casos onde uma conexão lenta é suficiente e para
quando você não encontra a placa de rede para comprar (no caso de
laptops). Fora estes casos, é melhor uma placa ethernet mesmo.

  Abraços,
   Pedro

On Wed, Apr 17, 2002 at 06:38:48AM -0300, José Leonardo Thozo Vieira wrote:
 Debianzóides,
   Estou tentando fazer comunicação através de porta paralela usando duas
 maquinas: vaca, formiga.
 
   ::[ vaca (192.168.0.1) ]::
   Debian GNU/Linux 3.0 (unstable)
   Linux vaca 2.4.18 #1 Sex Abr 12 20:21:05 BRT 2002 i686 unknown
   parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
   192.168.0.1 P-a-P:192.168.0.2 Masc:255.255.255.0
cut


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problemas com PLIP.

2002-04-17 Thread Gleydson Mazioli da Silva
Primeiro, verifique o cabo laplink que está usando, voce comprou ou montou 
usando um 
ferro de solda?

Outra tentativa é especificar a interrupção e io junto ao módulo parport_pc:
modprobe parport_pc io=0x378 irq=7

Mesmo sendo detectado nas mensagens de inicializaçao do módulo, 
por algum motivo ele não funcionava. 

OBS: Isso aconteceu com uma máquina usando porta paralela em modo SPP.

José Leonardo Thozo Vieira [EMAIL PROTECTED] escreveu em 17 Apr 2002 06:38:48 
-0300:

 Debianzóides,
   Estou tentando fazer comunicação através de porta paralela usando duas
 maquinas: vaca, formiga.
 
   ::[ vaca (192.168.0.1) ]::
   Debian GNU/Linux 3.0 (unstable)
   Linux vaca 2.4.18 #1 Sex Abr 12 20:21:05 BRT 2002 i686 unknown
   parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
   192.168.0.1 P-a-P:192.168.0.2 Masc:255.255.255.0
 
   ::[ formiga (192.168.0.2) ]::
   Debian GNU/Linux 2.2 (stable)
   Linux formiga 2.2.19 #1 Fri Mar 22 02:08:51 BRT 2002 i486 unknown
   parport0: PC-style at 0x378, irq 7 [SPP]
   192.168.0.2 P-a-P:192.168.0.1 Masc:255.255.255.0
 
   Mesmo após efetuar as configurações corretamente, não consigo fazer com
 que as máquinas se comuniquem. Se eu executo o ping usando o endereço da
 maquina local ( vaca = vaca ), ele me retorna, agora quando pingo (
 vaca = formiga ).
 
   vaca:~# ping 192.168.0.2
   PING 192.168.0.2 (192.168.0.2): 56 data bytes
   plip0: transmit timeout(1,78)
 
   --- 192.168.0.2 ping statistics ---
   366 packetes transmitted, 0 packetes recived, 100% packet loss
 
   Alguém?
 -- 
 ....
 D|   __  _ _  |F
 E|  / _|  __ _  | |_  | |__   ___   _  _  |A
 B| |  _| / _` | |  _| | '_ \ / _ \ | || | |T
 I| |_|   \__,_|  \__| |_.__/ \___/  \_, | |B
 A|José Leonardo Thozo Vieira |__/ |O
 N||Y
 ``---::[ [EMAIL PROTECTED] ]::---''
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 
 


---
Gleydson Mazioli da Silva
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Evolução da Medicina mundial:

2000 A.C. - Venha, coma esta raiz.
1000 D.C. - Esta raiz é pagã. Venha, faça esta prece.
1850 D.C. - Esta prece é superstição. Venha, beba esta poção.
1940 D.C. - Esta poção é uma fraude. Tome esta pílula.
1985 D.C. - Esta pílula não faz efeito. Tome este antibiótico.
2000 D.C. - Este antibiótico é artificial. Aqui, coma esta raiz.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Plip problems: do I need NFS server?

2002-01-13 Thread Anthony Campbell
On 25 Dec 2001, Michael Heldebrant wrote:
 
 
 That's troubling.  What are the error messages when you try and install
 the packages on the laptop?
 

[snip]


Thank you.


During the setting up of nfs-kernel-server, the process gets as far as 
Starting NFS kernel daemon: nfsd

and then hangs. I have to kill it with Ctrl-C. On repeating the
installation, it gets as far as 
Starting NFS kernel daemon: nfsd mountd
and then says:
Cannot register service:RPC: unable to send; errno = Invalid
Argument

When I reboot, I see messages:
RPC: sendmsg returned error 101
portmap: RPC call returned error 101


A check with dpkg -s shows that nfs-kernel-server is installed ok but I
have no idea what the above error messages mean or what I am supposed to
to about them.

Anthony
-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





Re: Plip problems: do I need NFS server? -SOLVED

2001-12-26 Thread Anthony Campbell
On 25 Dec 2001, Michael Heldebrant wrote:
 On Tue, 2001-12-25 at 05:24, Anthony Campbell wrote:
  
  Got that on my desktop; neither will install properly on my laptop, for
  some reason, but the desktop can presumably act as server and allow
  transfer in both directions?
 
 
 That's troubling.  What are the error messages when you try and install
 the packages on the laptop?
 
[snip]

The problem now seems to be solved: there was nothing in
/etc/network/interfaces. I put 

auto lo
iface lo inet loopback

And this now seems to be in order.

Still something odd about telnet - I'm posting a separate query about
this.

Thanks for your help.

Anthony

-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





Re: Plip problems: do I need NFS server?

2001-12-25 Thread Anthony Campbell
On 24 Dec 2001, Michael Heldebrant wrote:
 On Mon, 2001-12-24 at 03:36, Anthony Campbell wrote:
  I'm trying to set up plip on my desktop and laptop. Plip now runs, but
  I'm not sure how to continue.
  
  I'm working through the NFS Howto, with moderate success only. Anything
  else I should be reading?
  
  Question: is it essential to have a NFS server running on both machines
  or is portmap enough? If it is essential, I have a problem, because both
  nfs-kernel-server and nfs-user-server fail to install properly on my
  laptop.
 
 Describe moderate success?
 
 In lieu of that information I'll try to give a comprehensive list of
 things:
 

Thank you; very helpful. I think you've answered the rather unformed
questions I asked.

 Both server and client are going to need the nfs-common package.
 

Got that.

 Server needs in addition to nfs-common, the nfs-kernel-server or the
 userspace server.
 

Got that on my desktop; neither will install properly on my laptop, for
some reason, but the desktop can presumably act as server and allow
transfer in both directions?

 Server's /etc/exports file is going to need the listing of filesystems
 or directories to export prefereably with the ip address of the client
 over the plip link instead of world access.  Then exportfs -a -v should
 tell you some information about exporting.
 
 The client needs nfs filesystem support in the kernel.  Make the
 mountpoint for the nfs drive on the client.  mount server:/mountpoint
 /mountpoint should do just fine unless you're going to need adjust
 parameters for speed or performance over the PLIP link.  I've been quite
 happy with the defaults over switched ethernet networks, YMMV.  If you
 get a denial from the server it's going to take some work with the
 /etc/exports file on the server to get it working.
 

This explains what I was unclear about; I'll try it out.

Anthony

-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





Re: Plip problems: do I need NFS server?

2001-12-25 Thread Michael Heldebrant
On Tue, 2001-12-25 at 05:24, Anthony Campbell wrote:
 On 24 Dec 2001, Michael Heldebrant wrote:
  On Mon, 2001-12-24 at 03:36, Anthony Campbell wrote:
   I'm trying to set up plip on my desktop and laptop. Plip now runs, but
   I'm not sure how to continue.
   
   I'm working through the NFS Howto, with moderate success only. Anything
   else I should be reading?
   
   Question: is it essential to have a NFS server running on both machines
   or is portmap enough? If it is essential, I have a problem, because both
   nfs-kernel-server and nfs-user-server fail to install properly on my
   laptop.
  
  Describe moderate success?
  
  In lieu of that information I'll try to give a comprehensive list of
  things:
  
 
 Thank you; very helpful. I think you've answered the rather unformed
 questions I asked.
 
  Both server and client are going to need the nfs-common package.
  
 
 Got that.
 
  Server needs in addition to nfs-common, the nfs-kernel-server or the
  userspace server.
  
 
 Got that on my desktop; neither will install properly on my laptop, for
 some reason, but the desktop can presumably act as server and allow
 transfer in both directions?


That's troubling.  What are the error messages when you try and install
the packages on the laptop?

The server allows bidirectional transfer to and from the mount. 
Assuming you allow write on the server AND mount with write access on
the client you can write.  Of course then you're going to need to worry
about setting the things for executibles and root_squashing.  But lets
get you up and running before we confuse you ;.
 
  Server's /etc/exports file is going to need the listing of filesystems
  or directories to export prefereably with the ip address of the client
  over the plip link instead of world access.  Then exportfs -a -v should
  tell you some information about exporting.
  
  The client needs nfs filesystem support in the kernel.  Make the
  mountpoint for the nfs drive on the client.  mount server:/mountpoint
  /mountpoint should do just fine unless you're going to need adjust
  parameters for speed or performance over the PLIP link.  I've been quite
  happy with the defaults over switched ethernet networks, YMMV.  If you
  get a denial from the server it's going to take some work with the
  /etc/exports file on the server to get it working.
  
 
 This explains what I was unclear about; I'll try it out.

Let the list know if you need more help.

--mike




Plip problems: do I need NFS server?

2001-12-24 Thread Anthony Campbell
I'm trying to set up plip on my desktop and laptop. Plip now runs, but
I'm not sure how to continue.

I'm working through the NFS Howto, with moderate success only. Anything
else I should be reading?

Question: is it essential to have a NFS server running on both machines
or is portmap enough? If it is essential, I have a problem, because both
nfs-kernel-server and nfs-user-server fail to install properly on my
laptop.

I want to make the whole thing as simple as possible; I'm not much
bothered about speed.

Anthony

-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





Re: Plip problems: do I need NFS server?

2001-12-24 Thread Michael Heldebrant
On Mon, 2001-12-24 at 03:36, Anthony Campbell wrote:
 I'm trying to set up plip on my desktop and laptop. Plip now runs, but
 I'm not sure how to continue.
 
 I'm working through the NFS Howto, with moderate success only. Anything
 else I should be reading?
 
 Question: is it essential to have a NFS server running on both machines
 or is portmap enough? If it is essential, I have a problem, because both
 nfs-kernel-server and nfs-user-server fail to install properly on my
 laptop.

Describe moderate success?

In lieu of that information I'll try to give a comprehensive list of
things:

Both server and client are going to need the nfs-common package.

Server needs in addition to nfs-common, the nfs-kernel-server or the
userspace server.

Server's /etc/exports file is going to need the listing of filesystems
or directories to export prefereably with the ip address of the client
over the plip link instead of world access.  Then exportfs -a -v should
tell you some information about exporting.

The client needs nfs filesystem support in the kernel.  Make the
mountpoint for the nfs drive on the client.  mount server:/mountpoint
/mountpoint should do just fine unless you're going to need adjust
parameters for speed or performance over the PLIP link.  I've been quite
happy with the defaults over switched ethernet networks, YMMV.  If you
get a denial from the server it's going to take some work with the
/etc/exports file on the server to get it working.

--mike




Re: Anyone using plip?

2001-12-22 Thread Steve Kieu
 --- Anthony Campbell [EMAIL PROTECTED]
wrote:  I've tried to get plip running, both in a
monolithic
 kernel and as a
 module. No luck: dmesg reports parport0 has no
 irq.

You have to specify io port and irq manually, this is
intended as irq may be assigned to another hardware as
required when you dont need plip.

Let's do

modprobe parport_pc io=0x378 irq=7

for example

The parport_pc will detect io port and irq but it
doesn't set using this irq, you should set it.


 In fact, parport0 is there and is detected and used
 by lp0. Not sure
 what to try next.
 
 The information in the PLIP howto seems to be
 somewhat out of date; is
 there anything more recent?
 
 Anthony
 
 -- 
 Anthony Campbell - running Linux GNU/Debian
 (Windows-free zone)
 For an electronic book (The Assassins of Alamut),
 skeptical 
 essays, and over 150 book reviews, go to:
 http://www.acampbell.org.uk/
 
 Our planet is a lonely speck in the great enveloping
 cosmic dark. In our
 obscurity, in all this vastness, there is no hint
 that help will come
 from elsewhere to save us from ourselves. [Carl
 Sagan]
 
 
 
 
 -- 
 To UNSUBSCRIBE, email to
 [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
  

=
S.KIEU

http://my.yahoo.com.au - My Yahoo!
- It's My Yahoo! Get your own!



Re: Anyone using plip?

2001-12-22 Thread Anthony Campbell
On 22 Dec 2001, Steve Kieu wrote:
  --- Anthony Campbell [EMAIL PROTECTED]
 wrote:  I've tried to get plip running, both in a
 monolithic
  kernel and as a
  module. No luck: dmesg reports parport0 has no
  irq.
 
 You have to specify io port and irq manually, this is
 intended as irq may be assigned to another hardware as
 required when you dont need plip.
 
 Let's do
 
 modprobe parport_pc io=0x378 irq=7
 
 for example
 
 The parport_pc will detect io port and irq but it
 doesn't set using this irq, you should set it.
 
 

This doesn't work; I get:

 sudo modprobe parport_pc io=0x378 irq=7
 modprobe: Can't locate module parport_pc


Anyway, never mind: I just forgot modules (as I usually do) and compiled
eveything into the kernel. Now, using the command line suggested in the
kernel parport.txt documentation, I have succeeded in loading the plip
driver. :)

However, the PLIP Howto is out of date and the author is not accessible
by email. Do you know which of the Debian files need to be modified to
make plip work? The current ones (in Woody) are different from those in
the PLIP Howto.

Anthony Campbell

-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





Re: Anyone using plip?

2001-12-22 Thread MeRp
I use plip, in module form, I could not get the IRQ mode working, but
IRQ-less mode works fine, I had to use plipconfig to set both the nibble
and trigger much higher than the default values.. I use 10,000 (the
defaults were somewhere around 1000 if I recall).. I still get soem
dropped packets, but not too many. I think the plipconfig values he
gives in the HOWTO are based on getting IRQ mode working.. possibly
IRQ-less requires much higher values? anyhow, whenever I tried loading
the module it gave me a message that the config options were not
recognized (namely.. the config option to tell it what irq to use) so,
since the HOWTO said it was -possible- but not desirable to get IRQ-less
mode working.. I worked at that.. I get ~30Kb/s transfer rates, which is
not too bad... so, unless I can find out how to get IRQ mode working
properly (pref with modules, since plip doesn't need to be in memory
when my laptop and desktop aren't connected), I will likely not
experiment much further. If you get it going let me know and I'll try it
out...

Dave


pgpDTPnzzcfnh.pgp
Description: PGP signature


Anyone using plip?

2001-12-21 Thread Anthony Campbell
I've tried to get plip running, both in a monolithic kernel and as a
module. No luck: dmesg reports parport0 has no irq.
In fact, parport0 is there and is detected and used by lp0. Not sure
what to try next.

The information in the PLIP howto seems to be somewhat out of date; is
there anything more recent?

Anthony

-- 
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For an electronic book (The Assassins of Alamut), skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]





PLIP problem pls help

2001-11-08 Thread Steve Kieu

Hi,

Sorry if it is not related to debian specific but I
hope some one would help me out.

I got two boxes and wish to use plip to connect.
Kernel 2.4.12-ac2 compiled with plip and lp as
modules. Printting is normal; 

So, I removed lp and even I removed parport_pc so on,
and 

modprobe parport_pc
modprobe plip

No error message but plip does not use the correct irw
for the device, the syslog says:

parport0 has no IRQ. Using IRQ-less mode,wh
ich is fairly inefficient!
Nov  9 16:48:09 kieu kernel: NET3 PLIP version
2.4-parport [EMAIL PROTECTED]
Nov  9 16:48:09 kieu kernel: plip0: Parallel port at
0x378, not using IRQ

But when parport_pc loaded it detects irq 7 correctly

 parport0: PC-style at 0x378 [PCSPP,TRISTATE]
Nov  9 16:40:04 kieu kernel: parport0: cpp_daisy:
aa5500ff(38)
Nov  9 16:40:04 kieu kernel: parport0: assign_addrs:
aa5500ff(38) 
Nov  9 16:40:04 kieu kernel: parport0: cpp_daisy:
aa5500ff(38)  
Nov  9 16:40:04 kieu kernel: parport0: assign_addrs:
aa5500ff(38)
Nov  9 16:47:59 kieu kernel: parport0: PC-style at
0x378 [PCSPP,TRISTATE]
Nov  9 16:47:59 kieu kernel: parport0: irq 7 detected

If I tried to insmod plip io=0x378 irq=7 and it says:

Using
/lib/modules/2.4.12-ac2/kernel/drivers/net/plip.o
/lib/modules/2.4.12-ac2/kernel/drivers/net/plip.o:
invalid parameter parm_io

I suspect as plip did not use the correct irq so that
the interface is not good. When I ping each other 100%
packets lost, and the other end says, 

plip0: transmit timeout(1,80)

Is it a bug with kernel 2.4.12-ac2? Or did I miss
something?

Thank you in advance..



=
S.KIEU

http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.



plip, no IRQ? - debian on my laptop

2001-10-09 Thread valentin born
Hey Yo Hoh, everybody!

after modprobe plip (on woody,2.4.9,with modules parport, parport_pc and
plip) i get the following:

  plip0: parport0 has no IRQ. using IRQ-less mode, which is fairly
inefficient! 
 plip0: parallel port at 0x378, not using IRQ.
 
but while booting i read something like: parport0 using IRQ7 (which would
fit nicely with 0x378, wouldnt it?)
 
BTW, i want to use plip to set my baby laptop up with debian (no CD only
4megs of ram (no bootdisk)  but  
the disk is huge - well, kind of (1GB)).
(or is there a way of  directly installing from my big
pc via plip onto my laptop?
  i tried this of course, but i cannot load the modules
before giving a root-partition (which is 
  supposed to be on the laptop...  also alt-f2ing to a
console i couldnt get plip to working)

so (on bigdebby, the real PC) ifconfig plip0 bigdebby pointopoint
babylap
- works (at least doesnt complain - no news is)
ifconfig plip0 shows:

plip0 Link encap:Ethernet  HWaddr FC:FC:7F:00:00:01
  inet addr:127.0.0.1  P-t-P:192.168.0.12  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:255 Base address:0x378

2nd line: P-t-P my.baby.laptop.computer; the Mask: on my baby laptop i use
mask 255.255.255.0 (could 
 this turn out to cause problems? how do i change it on
debian (not having an /etc/rc.d/rc.inet1 - file))
last line: Interrupt: 255 ,why that? why does it choose an IRQ? or is 255
not a real IRQ? how do i change the  
  devices IRQ?

now, i can route add plip0 baby

well, many questions and i havent got a clue of what to do here - if you are
any wiser, _please_ let me know.

oh, yes: on the laptop i can use plip - i already have monkeylinux running
which intalls onto an existing 
DOS-FAT (you have to start it from dos using loadlin) but i dont get any
apps to work under X (yes i intend to 
use X - did work with 2diskX, but again no apps for me - i need a small
wordprocessor (i had abiword in 
mind) any suggestions on alternatives on that are appreciated, too)
if you know a fine non-X wordpro (like the good old word ;) ) please also
inform me on that.
that would solve all my prob easiest - i dont need X, but so far nobody was
able to tell me a non-X wordpro for 
linux :(

im counting on all of you out there
thank you very much 
cu

kamome



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


Description: Binary data


Re: PLIP and Windows

2001-08-20 Thread Phil Brutsche
A long time ago, in a galaxy far, far way, someone said...

 Is PLIP compatible with parallel port Direct Cable Connection in
 Windows (i.e., can it be used to network a computer running Linux to
 one running Windows?)

Unfortunately not.  I know of no PLIP implementation that works with
32-bit Windows, and I've looked long and hard.

And I assure you, you aren't the first person to ask this question :)

Unfortunately the only way to network a Windows machine  a Linux machine,
without falling back to ethernet, token ring, or similar technologies,
is to use the serial port :(

 Any caveats?

You mean PLIP caveats?  It's heavily dependent on CPU speeds; I've gotten
an upwards of 30kb/sec between a 450MHz PII  a 120MHz Pentium.

 I have several computers networked via 10base2 and would like to add a
 notebook to these, but I have only seen pcmcia cards for
 10baseT/100baseT.

You can get hubs of eBay that have RJ-45  BNC connectors.

You can also get on eBay you'll likely find a PCMCIA ethernet card that
has both RJ-45  BNC connectors.


Phil



PLIP and Windows

2001-08-19 Thread Bob Nielsen
Is PLIP compatible with parallel port Direct Cable Connection in
Windows (i.e., can it be used to network a computer running Linux to
one running Windows?) Any caveats?  I have several computers networked
via 10base2 and would like to add a notebook to these, but I have only
seen pcmcia cards for 10baseT/100baseT.



plip module cannot be installed

2001-07-14 Thread Rainer Hahnekamp
I want to install the plip module in the kernel but it did not work. I have 
tried all parameters according to the technical reference of the 
manufacturer, but without success. I always get following error message:
/lib/modules/2.2.19pre17/net/plip.o: init_module: Device or resource busy
Hint: this error can be caused by incorrect module parameters, including 
invalid IO or IRQ parameters
...
...
Installation failed

Could somebody help me?

-Rainer Hahnekamp



Re: PLIP no conecta

2001-07-03 Thread Fermín Manzanedo
El Mon, 02 de Jul de 2001 a las 08:34:35AM +0200, José Luis Triviño escribía:
   Aparte de esto se me ocurren dos razones para que no funciones:
 1. El cable está dañado o es incorrecto. Suele ser lo más probable.
 Sobre todo si has comprado el cable hecho. En las tiendas de electrónica
 andan muy despistados.
Buenas
pues parece que se me ha changao el cable :( porque me lo han probado en 
winbugs y tampoco funciona.

Muchas gracias de todos modos
--
Fermín Manzanedo  |  Badajoz - Spain
http://www.astrored.net/elsol | Usuario Linux #184967
Desde Toshiba2140CDS | Debian GNU/Linux 2.2
mail -s gpg public key [EMAIL PROTECTED]  /dev/null

La cita del día:

#--#

De hombres es equivocarse; de locos perisitir en el error.

   (Cicerón)
#--#




pgpnivI7uyDu9.pgp
Description: PGP signature


Re: PLIP no conecta

2001-07-02 Thread José Luis Triviño
Fermín Manzanedo wrote:
 Hola de nuevo,
 además de esto, he probado a quitar todos los módulos que tengan que ver con 
 el puerto paralelo: lp, parport, parport_pc y plip.
Hola,
Por si te sirve de algo, te envío un script que yo utilizo para activar
mi plip. Este script funciona en el equipo sobremesa para conectar a un
portatil. En el portatil el script es simetrico.
Aparte de esto se me ocurren dos razones para que no funciones:
1. El cable está dañado o es incorrecto. Suele ser lo más probable.
Sobre todo si has comprado el cable hecho. En las tiendas de electrónica
andan muy despistados.
2. No has definido correctamente las direcciones IP de los ordenadores.
En mi caso, en el fichero /etc/hosts aparece
192.168.0.1 sobremesa
192.168.0.2 portatil
Estos datos son los mismos en los dos ordenadores.

Saludos,
-- 
---
Jose Luis Trivintilde;o Rodriguez

http://alcor.lcc.uma.es/~trivino
Usuario registrado de linux nº 53043
---

La medida de programar es programar sin medida#!/bin/bash

/etc/init.d/lpd stop

modprobe -r lp
echo 7  /proc/parport/0/irq
modprobe plip

ifconfig plip0 sobremesa pointopoint portatil netmask 255.255.255.255 up



  1   2   3   >