source: trunk/minix/man/man8/inet.8@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.8 KB
Line 
1.TH INET 8
2.SH NAME
3inet, inet.conf \- TCP/IP server
4.SH SYNOPSIS
5.B inet
6.SH DESCRIPTION
7.de SP
8.if t .sp 0.4
9.if n .sp
10..
11.B Inet
12is the TCP/IP server. It is a device driver that interfaces between the
13file server and the low level ethernet device driver. The interface to this
14server is described in
15.BR ip (4).
16.PP
17.B Inet
18starts as a normal process, reads a the configuration file
19.B /etc/inet.conf
20to see what it should do, and uses a few special low level system calls
21to turn itself into a server. The format of the configuration file is as
22follows:
23.SS Configuration
24The inet configuration file is fairly simple, here is an example:
25.PP
26.RS
27.ft C
28.nf
29eth0 DP8390 0 { default; };
30psip1;
31.fi
32.ft P
33.RS
34.PP
35It tells that network 0 (the one containing devices
36.BR eth0 ,
37.BR ip0 ,
38.BR tcp0
39and
40.BR udp0 )
41uses the ethernet device driver handled
42by task "DP8390" at port 0. This network is marked as the default
43network, so most programs use it through the unnumbered devices like
44.B /dev/tcp
45or
46.BR /dev/udp .
47Network 1 is a Pseudo IP network that can be used for
48a serial IP over a modem for instance.
49.PP
50The configuration file may look like a common configuration file as
51described by
52.BR configfile (5),
53but it is currently just a simple subset allowing only what you see here.
54The following network definitions are possible:
55.PP
56.BI eth N
57.I task port
58.RI { options };
59.RS
60This sets up an ethernet with device name
61.BI /dev/eth N\fR,
62built on the given ethernet device driver at the given port at that driver.
63(If a network driver manages two network
64cards then they are at port 0 and 1.)
65.br
66.RE
67.PP
68.BI eth N
69.B vlan
70.I id
71.BI eth M
72.RI { options };
73\0\0\0\0
74.RS
75The ethernet
76.BI eth N
77uses VLAN number
78.I id
79and is built on ethernet
80.BI eth M\fR.
81A packet given to this network has a VLAN tag prefixed to it and is then
82handed over to another ethernet for transmission. Likewise a packet on
83that ethernet carrying the appropriate VLAN tag has this tag removed and is
84sent on to this network. The VLAN ethernet behaves like an ordinary ethernet
85as far as applications are concerned.
86.RE
87.PP
88.BI psip N
89.RI { options };
90.RS
91Creates pseudo IP network
92.BI /dev/psip N\fR,
93usable for IP over serial lines, tunnels and whatnot.
94.RE
95.SH OPTIONS
96Some options can be given between braces.
97.PP
98.BR default ;
99.RS
100Mark this network as the default network. Exactly one of the networks must
101be so marked.
102When
103.B inet
104is started it will check and create all the necessary network devices before
105becoming a server. To know what major device number to use it checks
106.BR /dev/ip ,
107so that device must already exist. It can be created by
108.B MAKEDEV
109if need be.
110.RE
111.PP
112.BR "no ip" ;
113.br
114.BR "no tcp" ;
115.br
116.BR "no udp" ;
117.RS
118These options turn the IP, TCP, or UDP layer off. Inet will not enable the
119devices for these layers, and will deactivate code for these layers.
120Disabling IP will also disable TCP or UDP, because they need IP to function.
121An ethernet without an IP layer can be used as for stealth listening. An IP
122network without TCP or UDP can be used to pester students into creating the
123missing functionality. Keeps them off the streets, and maybe they'll learn
124something.
125.RE
126.SH "SEE ALSO"
127.BR ip (4),
128.BR boot (8).
129.SH NOTES
130The number of networks that can be defined are 2 (Minix-86), 4 (Minix-386)
131or 16 (Minix-vmd). This limits both the total number and the highest
132device number you can use.
133.PP
134Getting a network administrator to give you a trunk or multi-VLAN port to
135run multiple networks on can be a challenge. It questions their idea that
136VLANs are separate networks, while in reality it is just one big ethernet.
137.SH ACKNOWLEDGMENTS
138Cindy Crawford, for providing invaluable help debugging this server.
139.SH AUTHOR
140.ta \w'Manual:'u+2n
141Code: Philip Homburg <philip@cs.vu.nl>
142.br
143Manual: Kees J. Bot <kjb@cs.vu.nl>
144
145.\"
146.\" $PchId: inet.8,v 1.6 2001/10/08 19:01:35 philip Exp $
Note: See TracBrowser for help on using the repository browser.