Академический Документы
Профессиональный Документы
Культура Документы
______________________________________________________________________
.
.
:
SGML format
"PLIP win95" ( )
FAQ (
: ,
!)
PLIP,
.
Dos-Linux PLIP link
, ,
:
panos@veria1.freeserve.co.uk
, , / ,
: controzz@cli.di.unipi.it.
email .
.
: mail,
.
.
.
,
root@myhost.
email FAQ,
8 (
) .
PLIP DOS Win95 email
,
.
,
NET-2-HOWTO, Terry Dawson. mini-HOWTO
NET-2-HOWTO:
PLIP
** .
.
NET-2-HOWTO
.
1. : PLIP
.
PLIP, SLIP,
, .
bit ,
.
(CPU
) ,
5 b/ 40 b/.
PLIP
tcp/ip , NFS. ,
Linux
,
.
,
PLIP .
modules ( )
PLIP
.
,
, patch
mini-HOWTO.
, PLIP
DOS Linux.
:
Linux Windows95.
2. PLIP.
PLIP ()
.
BIOS, "bidirectional" ECP EPP mode.
, plip.c,
2.0.33:
The cable used is a de facto standard parallel null cable -- sold as
a "LapLink" cable by various places. You'll need a 12-conductor cable
to
make one yourself. The wiring is:
SLCTIN
17 - 17
GROUND
25 - 25
D0->ERROR 2 - 15
15 - 2
D1->SLCT
3 - 13
13 - 3
D2->PAPOUT 4 - 12
12 - 4
D3->ACK
5 - 10
10 - 5
D4->BUSY
6 - 11
11 - 6
Do not connect the other pins. They are
D5,D6,D7 are 7,8,9
STROBE is 1, FEED is 14, INIT is 16
extra grounds are 18,19,20,21,22,23,24
/usr/src/linux/drivers/net/README1.PLIP
README2.PLIP
.
.
. ,
.
plip.c .
: (
) .
. :
15 .
, 30
; PLIP
(200 )
, .
3. .
,
(kernel-howto
). ,
"" . , ,
:
: 2.0.xx.
1.2.xx. 2.1.xx,
.
menuconfig
.
menuconfig:
#make menuconfig
(, modules 2.0.0)
module
PLIP .
,
, menuconfig.
moudles
# make modules
# make modules_install
4. PLIP.
PLIP,
, PLIP ,
(, ) PLIP module,
( ):
.
rc.inet* , ()
/etc/init.d .
.
, , IP
.
IP xxx.xxx.xxx.xxx .
/etc/rc.d/inet1.rc
( ):
______________________________________________________________________
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
______________________________________________________________________
NETWORK NETMASK .
, NET-2-HOWTO.
route :
, ,
( ).
:
IP , 200.0.0.1 200.0.0.2
.
NETWORK="200.0.0.0" NETMASK="255.255.255.0".
: 200.0.0.1 200.0.0.2 .
,
internet.
" ":
10.0.0.0
172.16.0.0
192.168.0.0
10.255.255.255
172.31.255.255
192.168.255.255
/etc/hosts
IP PLIP.
:
______________________________________________________________________
200.0.0.1
one
# this is the "one" IP address
200.0.0.2
two
# this is the "two" IP address
______________________________________________________________________
one two
.
NFS,
, /etc/exports
. ,
/usr,
:
______________________________________________________________________
/usr
two (ro)
______________________________________________________________________
NFS,
; NFS
.
.
6. .
, ,
,
PLIP ( ).
: ,
.
, FAQ,
.
lp :
# cat /proc/devices
lp :
6 lp
, () lp .
PLIP lp .
lp rmmod
module;
lp module (
).
one two . one
.
kerneld PLIP module,
:
# insmod plip
: IRQ 7
/ IO 0378,
insmod. IRQ IO ( DOS
MSD , )
:
# lsmod
Module:
plip
(plip0, plip1, ;
),
:
: IRQ 7
/ IO 0378,
ifconfig. IRQ IO
:
# ifconfig
.....
.....
plip1
two...
# route add two plip1
NFS two:
# rpc.portmap
# rpc.mountd
# rpc.nfsd
two one
two .
PLIP ,
two, :
. , two
PLIP one, two.
# ping two
one
# ping one
two .
script .
script :
,
/etc/rc.d/rc.inet2
.
PLIP,
plipconfig, man .
:
. kerneld
module:
# rmmod plip
7. FAQ.
.
, email
.
(
plip module):
SIOCSIFADDR: No such device
SIOCADDRT: Network is unreachable
,
:
SIOCSIFADDR: No such device
SIOCSIFDSTADDR: No such device
SIOCADDRT: Network is unreachable
mount clntudp_create: RPC: Port Mapper failure - RPC: Unable to send
, ,
PLIP. :
"PLIP support?" .
"Printer support?" .
PLIP module, .
, plip1 plip0.
PLIP LP, modules,
;
, , "
PLIP LP ":
.
PLIP LP.
script 2 .
rc.inet2, script
NFS. "two"
"one".
/etc/fstab "two". "two"
"one" , "two"
"mounting remote file systems...".
"two"
"one", "one"
"two" . :
rc.inet2
/etc/fstab two
.
two one
.
mount rc.d ( )
:
___________________________________________________________________
if ping -c 5 one ; then
mount one:/.....
fi
___________________________________________________________________
ping .
:
.
" " ,
" "
IRQ/IO .
, , ,
IRQ / IO . IRQ
60% ,
. :
. , , Linux
PLIP.
tester.
/ DOS/Win95 /
.
" " PLIP.
,
.
"" .
() bidirectional. BIOS. EPP
CP .
IRQ,
plip module ( lp module) IRQ.
" "
IRQ.
IRQ ( 7),
. DOS
MSD, plip module
IRQ.
IRQ IO .
MSD.
MSD .
: http://www.cs.caltech.edu/ huny/para13.zip.
ping .
:
plip1: timed out (1, 89)
.
.
:
, .
PLIP plipconfig.
10.255.255.255
172.16.0.0
192.168.0.0
172.31.255.255
192.168.255.255
PLIP
;
. /sbin/plipconfig. man
.
Debian GNU/Linux , Debian,
/etc/rc.d/rc.inet1 2 .
plip.
Debian GNU/Linux /etc/init.d/network,
rc.inet1 2.
PLIP.
PLIP 1.0.: ;
, ,
PLIP . plip.c PLIP
1.0.xx PLIP.
, PLIP 4 bits, PLIP 8 bits
; Mode 1.
mini-HOWTO .
/usr/src/linux/drivers/net/README*.PLIP
. :
PLIP "null printer" Mode 0 (
plip0, ) 4
bits. Mode 1 8 bits
Linux. ,
, PLIP Mode 1.
, .
8. PLIP LP .
PLIP LP
modules: plip.o
.
PLIP LP , .
8.1. PLIP LP .
PLIP LP
, .
,
:
______________________________________________________________________
******** modifications to linux/drivers/char/lp.c ***********************
struct lp_struct lp_table[] = {
{ 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
/*
{ 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
{ 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL,
NULL, },
*/
};
#define LP_NO 1
******** modifications to linux/drivers/net/Space.c ********************
#if defined(PLIP) || defined(CONFIG_PLIP)
extern int plip_init(struct device *);
static struct device plip2_dev = {
"plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };
static struct device plip1_dev = {
"plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };
/*
static struct device plip0_dev = {
"plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };
*/
# undef NEXT_DEV
# define NEXT_DEV
(&plip1_dev)
#endif /* PLIP */
______________________________________________________________________
:
" ".
. ,
.
8.2. PLIP LP .
2
PLIP LP
.
1.
drivers/char/lp.c.
___________________________________________________________________
struct lp_struct lp_table[] = {
{ 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
{ 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
/* { 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
*/
};
3 -> 2
___________________________________________________________________
2. .
8.1.
9. PLIP DOS Linux
mini-HOWTO
Linux DOS ( Windows).
.
Linux Gazzete
James McDuffie <mcduffie@scsn.net> .
PLIP Linux DOS,
Windows Trumpet WinSock
X-Windows
Windows.
James Vahn
jvahn@short.circuit.com <mailto:jvahn@short.circuit.com>
.
,
.
9.1. DOS-Linux .
PLIP Linux
,
.
DOS, .
:
ftp://ftp.crynwr.com/drivers/plip.zip
<ftp://ftp.crynwr.com/drivers/plip.zip>
DOS Ethernet Packet driver.
PLIP Windows
Trumpet Winsock. TCP/IP . ,
TCP/IP DOS.
, Linux
DOS /etc/hosts. DOS
IP
( 3 IP ).
linux Linux dos
DOS . :
Linux
/etc/rc.d/rc.inet1:
______________________________________________________________________
/sbin/ifconfig plip1 linux pointopoint dos arp up
/sbin/route add dos
______________________________________________________________________
.
plip2.
DOS/Windows
autoexec.bat, :
______________________________________________________________________
c:\plip\plip.com 0x60
c:\tcpip\winsock\winpkt.com 0x60
______________________________________________________________________
11 1996
DOS ( ) PLIP
Linux .
Linux ,
telnet Linux.
.
,
. PLIP .
modules
...
<gniibe@mri.co.jp> :
PLIP/LP modules, I keep
recommending using PLIP/LP as kernel module, since
()
PLIP LP modules
PLIP/LP modules,
PLIP LP. :
plip0 0x278 irq 2,
plip1 0x3bc irq 5, .
modules .
"" PLIP
modules. modules
.
.
1.2.13
../linux/drivers/net/Space.c .
205 PLIp IRQ
, (plip0, plip1,
plip2). 0278 IRQ 5 (
) Space.c IRQ 2.
.
IRQ ifconfig ,
IRQ PLIP
. ( ).
, , :
.../drivers/char/lp.c 38:
______________________________________________________________________
struct lp_struct lp_table[] = {
{ 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
{ 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
/* { 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, },
* 0x278 reserved for plip1
*
* };
* #define LP_NO 3
*/
};
#define LP_NO 2
______________________________________________________________________
- ,
. 0x3BC PLIP IRQ .
, ;
, , dummy plip.
. /etc/rc.d/rc.inet1:
______________________________________________________________________
#!/bin/bash
#
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0
/sbin/ifconfig dummy 200.0.0.1
/sbin/route add -net 200.0.0.0 netmask 255.255.255.0
/sbin/ifconfig plip1 arp 200.0.0.1 pointopoint 200.0.0.2 up
/sbin/route add 200.0.0.2
/sbin/ifconfig dummy down
______________________________________________________________________
arp DOS-to-Linux ,
Linux-to-Linux .
/etc/hosts ,
:
______________________________________________________________________
200.0.0.1
console1
200.0.0.2
console2
______________________________________________________________________
"route" :
Genmask
console2
255.255.255.255 UH
1436
136 p
loopback
255.0.0.0
1936
109 l
Flags MSS
Window Use I
face
lip1
U
"ifconfig plip1" :
plip1
/etc/inted.conf telnet
. man tcpd,
/etc/hosts.allow (ALL: LOCAL) /etc/hosts.deny
(ALL: ALL). "telnet localhost".
Linux , DOS.
03BC .
CSA telnet PLIP Crynwr,
:
ftp://ftp.ncsa.uiuc.edu/Telnet/DOS/ncsa/tel2308b.zip
<ftp://ftp.ncsa.uiuc.edu/Telnet/DOS/ncsa/tel2308b.zip>
ftp://ftp.crynwr.com/drivers/plip.zip
<ftp://ftp.crynwr.com/drivers/plip.zip>
2.3.08 NCSA telnet
11.1 Crynwr PLIP . Crynwr SUPPORT.DOC.
CONFIG.TEL : '
().
0278, IRQ 5.
______________________________________________________________________
myip=200.0.0.2
netmask=255.255.255.0
# subnetting mask
hardware=packet
# network adapter board (packet driver interface)
interrupt=5
# IRQ which adapter is set to
ioaddr=60
# software interrupt vector driver is using
#
#[...lots unchanged...]
#
# at the end of the file, put this line:
name=console1 ; hostip=200.0.0.1 ; nameserver=1 ; gateway=1
______________________________________________________________________
(console1 Linux , ,
)
4 (
) .
11- . Linux plip.c
. 17-17
.
______________________________________________________________________
@echo off
plip.com 0x60 5 0x278
telbin -s console1
______________________________________________________________________
. windows 95
, PLIP
Linux.
( ) .
Linux
Windows 95. :
PLIP !
11. ; ; ...
email
controzz@cli.di.unipi.it
<mailto:controzz@cli.di.unipi.it>
, .
FAQ, ,
, .
FAQ.
,
, : ,
, ,
, PLIP.
PLI
DOS/Windows 3.1, .
James Vahn jvahn@short.circuit.com
<mailto:jvahn@short.circuit.com>, DOS.
, ( ) PLIP Windows
95.
12. mini-howto.
mini-HOWTO HOWTO
comp.os.linux.answers
<news:comp.os.linux.answers>
HOWTO sunsite .
( )
,
http://www.cli.di.unipi.it/~controzz/intro.html
<http://www.cli.di.unipi.it/~controzz/intro.html> ( )
http://www.cli.di.unipi.it/~controzz/intro_e.html
<http://www.cli.di.unipi.it/~controzz/intro_e.html> ( )
13. Credits.
:
Rick Lim <ricklim@freenet.vancouver.bc.ca>
PLIP LP .