3 serial-ip \- Serial IP (SLIP or PPP) setup
12 This text and the serial IP code is not finished. Code needs to be added to
14 to allow it to be used both with and without a connection to the Internet,
15 and by now there is a PPP program for standard MINIX 3 "out there" that will
16 change everything that is said in this text. So much to do, so little
21 This manual page describes the MINIX 3 network setup to use serial line IP.
22 The serial IP protocol used can either be the older SLIP by means of the
24 program, or PPP (Point-to-Point Protocol), the newer and better serial IP
25 protocol implemented by the
27 program. Alas standard MINIX 3 only supports SLIP.
29 In the following text all descriptions and examples will name SLIP or the
31 program, but one may just as well read PPP or
33 Where necessary the differences will be noted.
40 .B "slip /dev/psip2 </dev/tty01 >/dev/tty01"
43 The argument of the program, the
45 device, is one of the so-called "Pseudo IP" devices that the MINIX 3 TCP/IP
48 offers to implement a virtual network on. On an ethernet IP packets are
49 received or transmitted by the ethernet card, but packets on a pseudo IP
50 network are channeled back to or received from a program running in user
53 Standard input and output are used by
55 to exchange packets with another SLIP implementation. This is normally
56 through an RS-232 serial line like the second serial line
58 as used in the example above.
60 If we look at the flow of data over normal ethernet then this is what a TCP
61 connection between two MINIX 3 machines,
63 for instance, looks like:
81 One-half (!) of a SLIP connection would look like this:
97 .SS "Configuration for a SLIP network only"
98 It is important to know that as far as
100 is concerned the pseudo IP network is just another network, nothing special.
101 So you have to convince
103 that it has to send packets out over that network. One does this by
104 setting a default route that makes
106 believe that there is a router somewhere on the pseudo-IP network.
108 Assume your machine has been given the IP address
110 by your service provider. Let's choose another address on that network,
112 for instance. (You can use the address of the SLIP gateway if you want
113 to make it look pretty, but it doesn't really matter, anything "out there"
115 To make MINIX 3 aware of the situation you have to configure the pseudo IP
116 network. For Minix-vmd you need to look for the
122 should be run. Copy the lines in the
124 clause that starts network daemons to
126 and add the following lines to make it look like this:
130 # My SLIP interface address.
131 ifconfig -h 192.168.0.13 -n 255.255.255.0
133 # Standard network daemons.
134 daemonize rarpd $named irdpd rip inetd
136 # Default route to the outside world.
137 add_route -g 192.168.0.1
141 For standard MINIX 3 one has to edit
143 instead at the point of the XXX comments. The
145 goes at the first XXX, the
147 at the second XXX. The result is conceptually the same as the example
148 above. The important thing is the order: Configuration, Daemons, Routes.
149 (First give addresses to the networks, let the daemons meditate over the
150 results and possibly configure more networks (rarpd), then add routes to
151 the configured networks.)
153 Just one thing left to do. The system uses the first ethernet network
159 as the default network. With the program
161 you have to change the links to the default devices
167 to point to the first pseudo IP network
175 .B "netdefault psip2"
182 and the name of your machine with its SLIP address. This way your machine
183 will boot and know its own name. Now you need to find a way to let your
184 system know the addresses of other machines. There are three ways:
187 List the names and addresses of any other machine you wish to talk
190 Drawback: This will quickly become a pretty long list.
194 that lists a nameserver at your ISP and
196 (localhost). Drawback: With the SLIP link down it takes 5 to 10 seconds for
197 a name lookup to time out on the remote name server before the local name
204 is started, and remove it when
206 exits. Drawback: Long running programs only read
208 at startup, so they don't notice it changing.
210 Run a real Internet name daemon from the
212 package. Drawback: Nontrivial to set up.
213 .SS "Configuration for a SLIP - Ethernet router (simple case)"
215 .SS "Configuration for a SLIP - Ethernet router (complex case)"
218 .TP \w'/dev/psip*'u+5n
220 Pseudo-IP devices for use by
232 Kees J. Bot (kjb@cs.vu.nl)