summaryrefslogtreecommitdiff
path: root/en/appendix/plip.xml
blob: 841087e20afd9c2174922cbd064135909581b127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!-- retain these comments for translator revision tracking -->
<!-- $Id$ -->

 <sect1 id="plip" arch="x86">
 <title>Installing &debian; over Parallel Line IP (PLIP)</title>

<para>

This section explains how to install &debian; on a computer without an
Ethernet card, but with just a remote gateway computer attached via
a Null-Modem cable (also called Null-Printer cable). The gateway
computer should be connected to a network that has a Debian mirror
on it (e.g. to the Internet).

</para><para>

In the example in this appendix we will set up a PLIP connection using
a gateway connected to the Internet over a dial-up connection (ppp0).
We will use IP addresses 192.168.0.1 and 192.168.0.2 for the PLIP
interfaces on the target system and the source system respectively
(these addresses should be unused within your network address space).

</para><para>

The PLIP connection set up during the installation will also be available
after the reboot into the installed system (see <xref linkend="boot-new"/>).

</para><para>

Before you start, you will need to check the BIOS configuration (IO base
address and IRQ) for the parallel ports of both the source and target
systems. The most common values are <literal>io=0x378</literal>,
<literal>irq=7</literal>.

</para>

  <sect2>
  <title>Requirements</title>

<itemizedlist>
<listitem><para>

A target computer, called <emphasis>target</emphasis>, where Debian will be
installed.

</para></listitem>
<listitem><para>

System installation media; see <xref linkend="installation-media"/>.

</para></listitem>
<listitem><para>

Another computer connected to the Internet, called <emphasis>source</emphasis>,
that will function as the gateway.

</para></listitem>
<listitem><para>

A DB-25 Null-Modem cable. See the
<ulink url="&url-plip-install-howto;">PLIP-Install-HOWTO</ulink> for more
information on this cable and instructions how to make your own.

</para></listitem>
</itemizedlist>

  </sect2>

  <sect2>
  <title>Setting up source</title>
<para>

The following shell script is a simple example of how to configure the
source computer as a gateway to the Internet using ppp0.

<informalexample><screen>
#!/bin/sh

# We remove running modules from kernel to avoid conflicts and to
# reconfigure them manually.
modprobe -r lp parport_pc
modprobe parport_pc io=<replaceable>0x378</replaceable> irq=<replaceable>7</replaceable>
modprobe plip

# Configure the plip interface (plip0 for me, see dmesg | grep plip)
ifconfig <replaceable>plip0 192.168.0.2</replaceable> pointopoint <replaceable>192.168.0.1</replaceable> netmask 255.255.255.255 up

# Configure gateway
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o <replaceable>ppp0</replaceable> -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
</screen></informalexample>

</para>
  </sect2>

  <sect2>
  <title>Installing target</title>
<para>

Boot the installation media. The installation needs to be run in
expert mode; enter <userinput>expert</userinput> at the boot prompt.
If you need to set parameters for kernel modules, you also need to
do this at the boot prompt. For example, to boot the installer and
set values for the <quote>io</quote> and <quote>irq</quote> options
for the parport_pc module, enter the following at the boot prompt:

<informalexample><screen>
expert parport_pc.io=<replaceable>0x378</replaceable> parport_pc.irq=<replaceable>7</replaceable>
</screen></informalexample>

Below are the answers that should be given during various stages of
the installation.

</para>

<orderedlist>
<listitem><para>

<guimenuitem>Load installer components from CD</guimenuitem>

</para><para>

Select the <userinput>plip-modules</userinput> option from the list; this
will make the PLIP drivers available to the installation system.

</para></listitem>
<listitem><para>

<guimenuitem>Detect network hardware</guimenuitem>

</para>

 <itemizedlist>
 <listitem><para>

If target <emphasis>does</emphasis> have a network card, a list of driver
modules for detected cards will be shown. If you want to force &d-i; to
use plip instead, you have to deselect all listed driver modules.
Obviously, if target doesn't have a network card, the installer will not
show this list.

 </para></listitem>
 <listitem><para>

Because no network card was detected/selected earlier, the installer will
ask you to select a network driver module from a list.
Select the <userinput>plip</userinput> module.

 </para></listitem>
 </itemizedlist>

</listitem>
<listitem><para>

<guimenuitem>Configure the network</guimenuitem>
 
 <itemizedlist>
 <listitem><para>

Auto-configure network with DHCP: No

 </para></listitem>
 <listitem><para>

IP address: <userinput><replaceable>192.168.0.1</replaceable></userinput>

 </para></listitem>
 <listitem><para>

Point-to-point address:
<userinput><replaceable>192.168.0.2</replaceable></userinput>

 </para></listitem>
 <listitem><para>

Name server addresses: you can enter the same addresses used on
source (see <filename>/etc/resolv.conf</filename>)

 </para></listitem>
 </itemizedlist>

</para></listitem>
</orderedlist>

  </sect2>
 </sect1>