inet.8
来自「minix操作系统最新版本(3.1.1)的源代码」· 8 代码 · 共 147 行
8
147 行
.TH INET 8.SH NAMEinet, inet.conf \- TCP/IP server.SH SYNOPSIS.B inet.SH DESCRIPTION.de SP.if t .sp 0.4.if n .sp...B Inetis the TCP/IP server. It is a device driver that interfaces between thefile server and the low level ethernet device driver. The interface to thisserver is described in.BR ip (4)..PP.B Inetstarts as a normal process, reads a the configuration file.B /etc/inet.confto see what it should do, and uses a few special low level system calls to turn itself into a server. The format of the configuration file is asfollows:.SS ConfigurationThe inet configuration file is fairly simple, here is an example:.PP.RS.ft C.nfeth0 DP8390 0 { default; };psip1;.fi.ft P.RS.PPIt tells that network 0 (the one containing devices.BR eth0 ,.BR ip0 ,.BR tcp0and.BR udp0 )uses the ethernet device driver handledby task "DP8390" at port 0. This network is marked as the defaultnetwork, so most programs use it through the unnumbered devices like.B /dev/tcpor.BR /dev/udp .Network 1 is a Pseudo IP network that can be used fora serial IP over a modem for instance..PPThe configuration file may look like a common configuration file asdescribed by.BR configfile (5),but it is currently just a simple subset allowing only what you see here.The following network definitions are possible:.PP.BI eth N.I task port.RI { options };.RSThis sets up an ethernet with device name.BI /dev/eth N\fR,built on the given ethernet device driver at the given port at that driver.(If a network driver manages two networkcards then they are at port 0 and 1.).br.RE.PP.BI eth N.B vlan.I id.BI eth M.RI { options };\0\0\0\0.RSThe ethernet.BI eth Nuses VLAN number.I idand is built on ethernet.BI eth M\fR.A packet given to this network has a VLAN tag prefixed to it and is thenhanded over to another ethernet for transmission. Likewise a packet onthat ethernet carrying the appropriate VLAN tag has this tag removed and issent on to this network. The VLAN ethernet behaves like an ordinary ethernetas far as applications are concerned..RE.PP.BI psip N.RI { options };.RSCreates pseudo IP network.BI /dev/psip N\fR,usable for IP over serial lines, tunnels and whatnot..RE.SH OPTIONSSome options can be given between braces. .PP.BR default ;.RSMark this network as the default network. Exactly one of the networks mustbe so marked.When.B inetis started it will check and create all the necessary network devices beforebecoming a server. To know what major device number to use it checks.BR /dev/ip ,so that device must already exist. It can be created by.B MAKEDEVif need be..RE.PP.BR "no ip" ;.br.BR "no tcp" ;.br.BR "no udp" ;.RSThese options turn the IP, TCP, or UDP layer off. Inet will not enable thedevices for these layers, and will deactivate code for these layers.Disabling IP will also disable TCP or UDP, because they need IP to function.An ethernet without an IP layer can be used as for stealth listening. An IPnetwork without TCP or UDP can be used to pester students into creating themissing functionality. Keeps them off the streets, and maybe they'll learnsomething..RE.SH "SEE ALSO".BR ip (4),.BR boot (8)..SH NOTESThe number of networks that can be defined are 2 (Minix-86), 4 (Minix-386)or 16 (Minix-vmd). This limits both the total number and the highestdevice number you can use..PPGetting a network administrator to give you a trunk or multi-VLAN port torun multiple networks on can be a challenge. It questions their idea thatVLANs are separate networks, while in reality it is just one big ethernet..SH ACKNOWLEDGMENTSCindy Crawford, for providing invaluable help debugging this server..SH AUTHOR.ta \w'Manual:'u+2nCode: Philip Homburg <philip@cs.vu.nl>.brManual: Kees J. Bot <kjb@cs.vu.nl>.\".\" $PchId: inet.8,v 1.6 2001/10/08 19:01:35 philip Exp $
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?